Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.07ms] Passed 4 tests
Server-side resources used by Annotation By Country
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.99 ▲1.01 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.28 ▼8.64 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.34 ▼0.66 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.28 ▼11.55 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.65 ▲0.56 |
Annotation By Country /wp-admin/options-general.php?page=settings_of_annotation_by_country | 3.21 | 32.45 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Annotation By Country
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.13 | 1.93 ▼0.39 | 44.29 ▼1.98 |
Dashboard /wp-admin | 2,213 ▲25 | 4.85 ▼1.04 | 101.14 ▼2.72 | 40.91 ▲1.85 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.02 | 33.23 ▼1.82 | 36.04 ▲5.38 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 22.80 ▼0.38 | 673.01 ▲63.77 | 56.59 ▲3.98 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.38 ▲0.25 | 99.70 ▼2.16 | 42.77 ▼1.53 |
Annotation By Country /wp-admin/options-general.php?page=settings_of_annotation_by_country | 803 | 2.03 | 25.26 | 32.74 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/annotation-by-country/abc.php:196
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: posts, translation, annotation, plugin, wordpress...
annotation-by-country/abc.php 85% from 13 tests
Analyzing the main PHP file in "Annotation By Country" version 0.2.0
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("annotation-by-country.php" instead of "abc.php")
- Description: The description should be shorter than 140 characters (currently 250 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin204 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 37 | 192 |
CSS | 1 | 2 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin