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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼9.26ms] Passed 4 tests
This is a short check of server-side resources used by Members Only Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.94 ▼0.37 |
Dashboard /wp-admin | 3.40 ▲0.06 | 47.35 ▼18.62 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.49 ▲0.31 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.03 ▼18.34 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.50 ▲2.32 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_club-news-posts |
widget_members-posts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
category_children |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Members Only Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.39 ▼0.25 | 1.79 ▼0.23 | 45.37 ▲4.52 |
Dashboard /wp-admin | 2,195 ▲15 | 5.65 ▲0.09 | 90.96 ▼12.13 | 38.79 ▼7.39 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.00 ▲0.00 | 40.74 ▲3.20 | 36.96 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 23.25 ▼0.06 | 671.96 ▲10.34 | 56.87 ▲3.14 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.30 ▲0.09 | 98.52 ▼4.85 | 45.06 ▼1.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- widget_club-news-posts
- can_compress_scripts
- widget_members-posts
- category_children
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/members-only-posts/members-only-widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/members-only-posts/members-only-widgets.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: members only
members-only-posts/members-only.php 77% from 13 tests
The entry point to "Members Only Posts" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 267 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("members-only-posts.php" instead of "members-only.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected354 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 72 | 16 | 354 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 4.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin