Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/the-world/theworld-widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; TheWorldWidget has a deprecated constructor
Server metrics [RAM: ▼1.75MB] [CPU: ▼693.83ms] Passed 4 tests
Analyzing server-side resources used by The World
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.89 ▼0.83 | 5.92 ▼19.45 |
Dashboard /wp-admin | 1.91 ▼1.15 | 6.63 ▼41.03 |
Posts /wp-admin/edit.php | 1.91 ▼1.20 | 8.08 ▼40.46 |
Add New Post /wp-admin/post-new.php | 1.91 ▼3.53 | 5.77 ▼2,657.43 |
Media Library /wp-admin/upload.php | 1.91 ▼1.10 | 7.15 ▼36.38 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_theworldwidget |
Browser metrics Passed 4 tests
Checking browser requirements for The World
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,698 ▲102 | 15.83 ▲0.38 | 7.54 ▼1.61 | 48.95 ▼0.02 |
Dashboard /wp-admin | 2,979 ▲48 | 5.91 ▼0.02 | 141.42 ▼5.76 | 136.87 ▲21.28 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.70 ▲0.02 | 69.49 ▲3.88 | 99.23 ▲4.26 |
Add New Post /wp-admin/post-new.php | 1,696 ▲13 | 18.71 ▼0.05 | 391.04 ▲11.77 | 119.24 ▲4.75 |
Media Library /wp-admin/upload.php | 1,770 ▼37 | 5.02 ▲0.03 | 142.47 ▼11.81 | 154.37 ▲11.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/the-world/theworld-widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; TheWorldWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_theworldwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/the-world/theworld-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/the-world/theworld-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/the-world/theworld-shortcode.php:3
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin Panel), #2 (Admin Panel), #3 (Use Image)
the-world/theworld.php 92% from 13 tests
The entry point to "The World" version 0.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("the-world.php" instead of "theworld.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected488 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 46 | 8 | 488 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
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/icon.png | 1.69KB | 0.90KB | ▼ 46.54% |
images/icon32.png | 3.17KB | 1.71KB | ▼ 45.87% |