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
Installer ran successfully
Server metrics [RAM: ▼0.62MB] [CPU: ▼20.54ms] Passed 4 tests
Analyzing server-side resources used by Post Country
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.41 ▼8.05 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.12 ▼2.03 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.99 ▼1.77 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.67 | 35.75 ▼70.30 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.74 ▲0.23 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Post Country
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.24 ▼0.15 | 2.07 ▲0.23 | 40.97 ▼2.14 |
Dashboard /wp-admin | 2,209 ▲29 | 5.56 ▼0.03 | 90.22 ▼3.80 | 68.83 ▲25.42 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.98 ▼0.06 | 33.64 ▼4.31 | 33.33 ▼1.57 |
Add New Post /wp-admin/post-new.php | 6,578 ▲5,052 | 26.22 ▲3.18 | 1,016.40 ▲353.81 | 64.12 ▲11.28 |
Media Library /wp-admin/upload.php | 1,414 ▲20 | 4.22 ▲0.04 | 100.72 ▲0.73 | 66.03 ▲19.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/post-country/country.php:12
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add images for these screenshots: #1 (An example posts page showing the new post attribute; the country it writes about.), #2 (An example of the mapping interface available in the enhanced mapping version.), #3 (An example of the GPX file mapping available in the enhanced mapping version.), #4 (An example of an elevation graph from a GPX trace available in the enhanced mapping version.)
post-country/country.php 92% from 13 tests
The main PHP file in "Post Country" ver. 2.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("post-country.php" instead of "country.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin273 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 83 | 45 | 273 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/world.png | 1.12KB | 1.05KB | ▼ 6.71% |
images/world32.png | 3.49KB | 1.77KB | ▼ 49.44% |