Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.15ms] Passed 4 tests
This is a short check of server-side resources used by World Population Counter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 41.84 ▲4.20 |
Dashboard /wp-admin | 3.41 ▲0.10 | 46.12 ▼4.84 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.50 ▲2.19 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.09 | 85.31 ▼11.83 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 34.25 ▼2.13 |
World Population Counter /wp-admin/options-general.php?page=world-population-counter | 3.30 | 30.52 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_alg_widget_world_population_counter |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for World Population Counter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲118 | 13.80 ▼0.36 | 8.54 ▲6.77 | 44.83 ▲5.42 |
Dashboard /wp-admin | 2,199 ▲25 | 5.60 ▼0.06 | 89.67 ▼9.33 | 42.79 ▼1.07 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.02 | 40.98 ▲4.75 | 37.49 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.11 ▼0.07 | 677.43 ▲82.25 | 51.55 ▼2.31 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.27 ▲0.09 | 95.74 ▼2.52 | 42.73 ▲2.15 |
World Population Counter /wp-admin/options-general.php?page=world-population-counter | 927 | 2.03 | 29.72 | 28.12 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_alg_widget_world_population_counter
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were 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
4 plugin tags: population, world, counter, clock
world-population-counter/world-population-counter.php Passed 13 tests
The main file in "World Population Counter" v. 1.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
48 characters long description:
Adds live world population counter to your site.
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 detected390 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 96 | 297 | 337 |
JavaScript | 3 | 10 | 25 | 53 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 29 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected