Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.17MB] [CPU: ▼274.89ms] Passed 4 tests
Server-side resources used by Post Read Limited by Specified Category
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.82 ▲0.10 | 35.64 ▲11.85 |
Dashboard /wp-admin | 3.08 ▲0.03 | 43.23 ▲0.82 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 42.58 ▲0.02 |
Add New Post /wp-admin/post-new.php | 4.67 ▼0.75 | 58.34 ▼1,093.44 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 33.70 ▼6.96 |
PostReadLimit /wp-admin/options-general.php?page=functions | 2.97 | 31.32 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Post Read Limited by Specified Category: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲72 | 15.90 ▲0.34 | 8.70 ▲0.40 | 47.06 ▼9.45 |
Dashboard /wp-admin | 2,935 ▲79 | 5.91 ▲0.07 | 146.97 ▲12.69 | 112.36 ▲11.23 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▲0.01 | 71.28 ▲1.18 | 95.78 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,580 ▲97 | 17.10 ▼1.41 | 372.44 ▼6.22 | 104.74 ▼22.11 |
Media Library /wp-admin/upload.php | 1,777 ▲5 | 4.99 ▼0.01 | 149.83 ▼35.18 | 126.33 ▲3.47 |
PostReadLimit /wp-admin/options-general.php?page=functions | 1,031 | 2.09 | 59.50 | 69.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=functions
- > Warning in wp-content/plugins/post-read-limited-by-category/postreadlimitedbc.php+79
in_array() expects parameter 2 to be array, bool given
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
post-read-limited-by-category/postreadlimitedbc.php 92% from 13 tests
The principal PHP file in "Post Read Limited by Specified Category" v. 1.2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("post-read-limited-by-category.php" instead of "postreadlimitedbc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin109 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 46 | 109 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin