Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.40ms] Passed 4 tests
A check of server-side resources used by Powerful Posts Per Page (PPPP)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.90 ▼6.15 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.47 ▼1.85 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.25 ▲1.92 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.81 ▼8.55 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.29 ▼1.04 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Powerful Posts Per Page (PPPP)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲87 | 13.74 ▼0.61 | 1.75 ▼0.33 | 45.86 ▼4.78 |
Dashboard /wp-admin | 2,250 ▲65 | 4.94 ▼0.88 | 104.88 ▲1.53 | 37.19 ▼8.40 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.33 ▲0.30 | 42.09 ▲5.39 | 31.75 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.60 ▲0.38 | 687.30 ▲26.86 | 59.75 ▼0.80 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.36 ▲0.22 | 106.26 ▲8.92 | 44.53 ▲1.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PPPP_Module' not found in wp-content/plugins/pppp/PPPP/Module/Option.php:13
- > PHP Fatal error
Uncaught Error: Class 'PPPP_Module' not found in wp-content/plugins/pppp/PPPP/Module/Admin.php:13
- > PHP Fatal error
Uncaught Error: Class 'PPPP_Module' not found in wp-content/plugins/pppp/PPPP/Module/Init.php:13
- > PHP Fatal error
Uncaught Error: Class 'PPPP_Module' not found in wp-content/plugins/pppp/PPPP/Module/Core.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pppp/PPPP/Module.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: cms, post type, taxonomy, posts per page
pppp/pppp.php Passed 13 tests
The main PHP script in "Powerful Posts Per Page (PPPP)" version 1.1.0 is automatically included on every request by WordPress
81 characters long description:
You can change posts per page by taxonomy or category or tag or custom post type.
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
There were no executable files found in this plugin323 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 59 | 200 | 204 |
XML | 1 | 2 | 9 | 39 |
PO File | 1 | 5 | 5 | 33 |
JSON | 1 | 0 | 0 | 30 |
Markdown | 1 | 8 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 3 | 14.29% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 29.01KB | 6.83KB | ▼ 76.46% |