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
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.55ms] Passed 4 tests
An overview of server-side resources used by Amd
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 34.53 ▼6.82 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.59 ▼4.30 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.83 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.46 ▼14.00 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.22 ▲0.09 |
Scan Meta tags /wp-admin/options-general.php?page=scan-meta-tags | 3.31 | 44.08 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Amd: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 14.35 ▼0.18 | 2.12 ▲0.45 | 42.19 ▼0.58 |
Dashboard /wp-admin | 2,206 ▲29 | 5.62 ▲0.09 | 84.29 ▼16.63 | 41.38 ▼1.61 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 1.97 ▼0.04 | 35.98 ▼0.83 | 36.58 ▲1.15 |
Add New Post /wp-admin/post-new.php | 6,277 ▲4,739 | 25.99 ▲3.00 | 875.87 ▲190.55 | 54.37 ▲2.12 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.19 ▼0.07 | 97.23 ▼5.77 | 44.10 ▼4.28 |
Scan Meta tags /wp-admin/options-general.php?page=scan-meta-tags | 915 | 1.99 | 22.20 | 34.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/amd/admin/partials/amd_create_scan_meta_content.php
- > /wp-content/plugins/amd/admin/partials/amd_scan_meta_content_pages.php
- > /wp-content/plugins/amd/admin/partials/amd_scan_meta_content_posts.php
- 57× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: amd_page_title_tag_lenght_exceed in wp-content/plugins/amd/admin/partials/amd_scan_meta_content_pages.php on line 11
- > PHP Notice
Trying to get property 'publish' of non-object in wp-content/plugins/amd/admin/partials/amd_create_scan_meta_content.php on line 16
- > PHP Notice
Undefined variable: amd_page_meta_description_empty in wp-content/plugins/amd/admin/partials/amd_scan_meta_content_pages.php on line 14
- > PHP Notice
Undefined variable: amd_page_title_tag_duplicated in wp-content/plugins/amd/admin/partials/amd_scan_meta_content_pages.php on line 11
- > PHP Notice
Undefined variable: current_page in wp-content/plugins/amd/admin/partials/amd_scan_meta_content_pages.php on line 85
- > PHP Notice
Undefined variable: current_page in wp-content/plugins/amd/admin/partials/amd_scan_meta_content_posts.php on line 85
- > PHP Notice
Undefined variable: amd_page_title_tag_empty in wp-content/plugins/amd/admin/partials/amd_scan_meta_content_pages.php on line 11
- > PHP Notice
Undefined variable: amd_page_meta_description_duplicated in wp-content/plugins/amd/admin/partials/amd_scan_meta_content_pages.php on line 14
- > PHP Notice
Undefined variable: active_tab in wp-content/plugins/amd/admin/partials/amd_create_scan_meta_content.php on line 15
- > PHP Notice
Undefined variable: amd_page_meta_description_lenght_exceed in wp-content/plugins/amd/admin/partials/amd_scan_meta_content_pages.php on line 14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: scan meta title, test meta tags, test meta title, title tag, meta title...
amd/amd.php 92% from 13 tests
This is the main PHP file of "Amd" version 1.05, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected542 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 150 | 568 | 467 |
CSS | 1 | 0 | 4 | 56 |
JavaScript | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin