Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▲3.49ms] Passed 4 tests
Analyzing server-side resources used by Custom Post Limits
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 46.09 ▲1.68 |
Dashboard /wp-admin | 3.67 ▲0.36 | 77.80 ▲18.86 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 57.13 ▲3.63 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 96.56 ▲0.81 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 42.35 ▲7.82 |
Post Limits /wp-admin/options-general.php?page=custom-post-limits/custom-post-limits.php | 3.55 | 45.88 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
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 |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Post Limits
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲18 | 13.24 ▼1.56 | 4.62 ▲2.35 | 40.38 ▼5.70 |
Dashboard /wp-admin | 2,210 ▲1 | 5.88 ▼0.01 | 112.18 ▲1.75 | 43.10 ▼0.14 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.02 | 36.39 ▲1.43 | 32.78 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.36 ▲5.79 | 713.68 ▲8.68 | 51.33 ▼5.67 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.18 ▲0.06 | 101.80 ▼8.29 | 44.19 ▲0.29 |
Post Limits /wp-admin/options-general.php?page=custom-post-limits/custom-post-limits.php | 1,141 | 1.68 | 29.20 | 53.56 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 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 0% from 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/custom-post-limits/tests/bootstrap.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-post-limits/tests/bootstrap.php on line 17
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/custom-post-limits/tests/bootstrap.php on line 17
- > 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 Passed 29 tests
readme.txt Passed 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
9 plugin tags: tags, listing, archives, front page, query...
custom-post-limits/custom-post-limits.php Passed 13 tests
"Custom Post Limits" version 4.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
118 characters long description:
Independently control the number of posts listed on the front page, author/category/tag archives, search results, etc.
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 plugin2,875 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 564 | 818 | 2,514 |
Markdown | 3 | 54 | 0 | 326 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 87.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 177.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 1 | 33.33% |
Methods | 171 | |
▷ Static methods | 8 | 4.68% |
▷ Public methods | 157 | 91.81% |
▷ Protected methods | 14 | 8.19% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
c2c_minilogo.png | 3.49KB | 1.91KB | ▼ 45.43% |