Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼264.33ms] Passed 4 tests
A check of server-side resources used by Show Pages List
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 29.82 ▲4.48 |
Dashboard /wp-admin | 3.06 ▲0.01 | 45.59 ▲6.48 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 45.09 ▲1.60 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 88.93 ▼1,043.29 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 34.61 ▼20.09 |
Show Pages List /wp-admin/options-general.php?page=showpageslist | 3.02 | 38.05 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Show Pages List: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,685 ▲103 | 16.18 ▲0.61 | 8.65 ▲1.10 | 45.94 ▼2.99 |
Dashboard /wp-admin | 2,963 ▲113 | 5.88 ▼0.00 | 135.26 ▲9.55 | 109.57 ▲7.87 |
Posts /wp-admin/edit.php | 2,710 ▲4 | 2.69 ▲0.00 | 66.29 ▼1.77 | 92.00 ▼3.42 |
Add New Post /wp-admin/post-new.php | 1,486 ▼167 | 18.48 ▼0.00 | 373.10 ▲4.47 | 113.80 ▲2.36 |
Media Library /wp-admin/upload.php | 1,782 ▲10 | 5.02 ▲0.03 | 155.85 ▼19.80 | 112.19 ▼4.24 |
Show Pages List /wp-admin/options-general.php?page=showpageslist | 1,056 | 2.33 | 60.74 | 68.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
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 | 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/show-pages-list/admin/partials/show-pages-list-admin-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please a description for screenshot #2 in show-pages-list/assets to your readme.txt
show-pages-list/show-pages-list.php 85% from 13 tests
Analyzing the main PHP file in "Show Pages List" version 1.2.0
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin279 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 81 | 357 | 207 |
JavaScript | 2 | 33 | 8 | 69 |
CSS | 1 | 0 | 3 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 78.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 21.05% |
Functions | 1 | |
▷ Named functions | 1 | 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 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin