Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼1.47MB] [CPU: ▼187.13ms] Passed 4 tests
Analyzing server-side resources used by TOPlist
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼0.67 | 13.23 ▼23.85 |
Dashboard /wp-admin | 2.18 ▼0.87 | 10.59 ▼39.30 |
Posts /wp-admin/edit.php | 2.18 ▼0.92 | 12.88 ▼32.94 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.25 | 10.83 ▼652.43 |
Media Library /wp-admin/upload.php | 2.18 ▼0.83 | 11.48 ▼22.87 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_toplist_cz |
toplist_cz_version |
Browser metrics Passed 4 tests
Checking browser requirements for TOPlist
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲85 | 15.94 ▲0.35 | 8.99 ▼3.93 | 46.66 ▼0.66 |
Dashboard /wp-admin | 2,972 ▲38 | 6.02 ▲0.05 | 141.95 ▼7.77 | 105.36 ▲4.48 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 68.41 ▼1.92 | 93.46 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,683 ▲179 | 18.72 ▲0.10 | 400.80 ▲4.01 | 105.67 ▼2.72 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.00 ▼0.05 | 151.94 ▼7.99 | 109.78 ▼6.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Notice in wp-content/plugins/toplist/toplist.php+23
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 2 options in the database
- toplist_cz_version
- widget_toplist_cz
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/toplist/toplist.php on line 12
- > PHP Warning
include_once(): Failed opening 'ABSPATHWPINC/class-http.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/toplist/toplist.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/toplist/toplist.php:14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/toplist/toplist.php on line 12
- > PHP Warning
include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/toplist/toplist.php on line 12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: toplist, statistics, analytics, web, widget...
toplist/toplist.php Passed 13 tests
The principal PHP file in "TOPlist" v. 5.1.2 is loaded by WordPress automatically on each request
89 characters long description:
Widget for easy integration of TOPlist.cz, popular Czech website visit statistics server.
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
There were no executable files found in this plugin1,136 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 81 | 21 | 723 |
JavaScript | 3 | 33 | 39 | 269 |
CSS | 2 | 32 | 1 | 144 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 136.00 |
▷ Minimum class complexity | 136.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 5.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 33 | |
▷ Static methods | 5 | 15.15% |
▷ Public methods | 12 | 36.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 63.64% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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