Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.73ms] Passed 4 tests
This is a short check of server-side resources used by Wanna Isotope
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.63 ▼3.70 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.45 ▼1.79 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.50 ▼1.69 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.67 ▼11.70 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.68 ▼1.71 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Wanna Isotope: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲143 | 13.43 ▼1.12 | 10.63 ▲8.78 | 43.40 ▼0.37 |
Dashboard /wp-admin | 2,202 ▲25 | 5.57 ▲0.03 | 95.00 ▼11.01 | 41.80 ▼1.00 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.02 ▲0.03 | 35.42 ▼1.21 | 36.02 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.15 ▼0.24 | 671.86 ▼66.77 | 58.96 ▲7.44 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▲0.13 | 111.21 ▼8.03 | 47.07 ▼2.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wanna-isotope/admin/partials/wanna-isotope-admin-display.php
- > /wp-content/plugins/wanna-isotope/public/partials/wanna-isotope-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wanna-isotope/public/templates/loop.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== wanna-isotope ===
)
wanna-isotope/wanna-isotope.php Passed 13 tests
"Wanna Isotope" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
A plugin to easily build Isotope Layouts with any content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin687 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 85 | 133 | 320 |
PHP | 12 | 145 | 516 | 295 |
CSS | 2 | 6 | 4 | 72 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 76.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 24.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected