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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.57ms] Passed 4 tests
This is a short check of server-side resources used by Limit Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.98 ▼4.33 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.63 ▼8.58 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.14 ▼5.16 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.13 ▼12.20 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.96 ▲1.67 |
Limit Posts /wp-admin/options-general.php?page=limit_posts_menu | 3.27 | 35.38 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Limit Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲11 | 14.72 ▲0.36 | 1.96 ▲0.13 | 39.63 ▼0.34 |
Dashboard /wp-admin | 2,203 ▲26 | 5.66 ▲0.02 | 91.92 ▼9.34 | 40.05 ▼2.92 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.00 ▲0.01 | 36.23 ▼0.58 | 34.25 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.04 ▼0.74 | 666.58 ▲4.26 | 61.99 ▲7.84 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.18 ▼0.09 | 111.47 ▲11.64 | 47.93 ▲3.54 |
Limit Posts /wp-admin/options-general.php?page=limit_posts_menu | 1,091 | 2.09 | 27.23 | 25.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/limit-posts/options-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function LimitPosts\\plugin_basename() in wp-content/plugins/limit-posts/limit-posts.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Invalid URI ("www.limitposts.com/donate/")
- Plugin Name: Please specify the plugin name on the first line (
=== limit-posts ===
)
limit-posts/limit-posts.php Passed 13 tests
The entry point to "Limit Posts" version 1.0.6 is a PHP file that has certain tags in its header comment area
104 characters long description:
A plugin to allow administrators to limit the number of posts a user can publish in a given time period.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/limit-posts/sassbuild.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 96 | 50 | 402 |
JavaScript | 1 | 35 | 15 | 127 |
Sass | 1 | 1 | 0 | 29 |
CSS | 2 | 1 | 6 | 17 |
DOS Batch | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 32.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 68.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG images were not found in this plugin