Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼12.19ms] Passed 4 tests
Server-side resources used by AGP Ajax Taxonomy Filter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 44.01 ▲1.87 |
Dashboard /wp-admin | 3.41 ▲0.07 | 49.91 ▼16.48 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.18 ▼1.89 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 83.61 ▼31.09 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.56 ▲0.71 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_atf_taxonomy_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by AGP Ajax Taxonomy Filter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲154 | 13.41 ▼0.96 | 9.39 ▲7.86 | 41.78 ▼0.56 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.03 | 88.25 ▼6.66 | 41.09 ▲2.43 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▲0.02 | 36.90 ▼4.47 | 34.25 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,525 ▼10 | 22.08 ▲3.93 | 665.92 ▲17.34 | 60.40 ▲4.50 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▼0.05 | 99.15 ▼3.63 | 42.68 ▼4.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_atf_taxonomy_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/fields/repeater/header.php
- > /wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/select.php
- > /wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/render-tabs.php
- 76× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'field' of non-object in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/select.php on line 4
- > PHP Notice
Undefined variable: params in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/text.php on line 2
- > PHP Notice
Trying to get property 'field' of non-object in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/checkbox.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/checkbox.php:19
- > PHP Fatal error
Uncaught Error: Class 'Agp_SessionAbstract' not found in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/classes/persistence/session/Agp_Session.class.php:3
- > PHP Notice
Trying to get property 'field' of non-object in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/select.php on line 3
- > PHP Notice
Trying to get property 'fields' of non-object in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/select.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/text.php:15
- > PHP Notice
Trying to get property 'field' of non-object in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/textarea.php on line 4
- > PHP Notice
Undefined variable: params in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/checkbox.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: ajax, taxonomy, agp, category, widget...
agp-ajax-taxonomy-filter/agp-ajax-taxonomy-filter.php Passed 13 tests
The main file in "AGP Ajax Taxonomy Filter" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
A plugin for WordPress that let you filter posts by taxonomies with AJAX
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,395 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 523 | 419 | 2,294 |
JavaScript | 3 | 16 | 0 | 69 |
Markdown | 2 | 18 | 0 | 31 |
CSS | 2 | 0 | 2 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 9 | 32.14% |
▷ Concrete classes | 19 | 67.86% |
▷ Final classes | 0 | 0.00% |
Methods | 297 | |
▷ Static methods | 5 | 1.68% |
▷ Public methods | 291 | 97.98% |
▷ Protected methods | 2 | 0.67% |
▷ Private methods | 4 | 1.35% |
Functions | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-128x128.png | 5.31KB | 1.65KB | ▼ 68.97% |
assets/images/banner-772x250.png | 51.21KB | 23.59KB | ▼ 53.94% |
assets/images/banner-1544x500.png | 128.82KB | 60.91KB | ▼ 52.71% |
assets/images/icon-256x256.png | 9.66KB | 3.21KB | ▼ 66.77% |