Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼296.84ms] Passed 4 tests
This is a short check of server-side resources used by Private Content
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.13 | 56.48 ▲8.93 |
Dashboard /wp-admin | 3.50 ▲0.10 | 32.30 ▼1.90 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 36.58 ▼0.73 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 92.05 ▼1,178.70 |
Media Library /wp-admin/upload.php | 3.39 ▲0.09 | 25.02 ▼6.04 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Private Content
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,766 ▲44 | 15.93 ▼0.03 | 5.62 ▲0.06 | 2.30 ▲0.07 |
Dashboard /wp-admin | 2,895 ▲37 | 6.13 ▼0.07 | 116.96 ▼20.06 | 154.13 ▼5.94 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.24 ▲0.01 | 62.30 ▲0.73 | 138.98 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,661 ▼91 | 16.40 ▼4.98 | 410.75 ▼42.33 | 153.83 ▲2.86 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.50 ▼0.03 | 135.52 ▼6.82 | 179.58 ▼6.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/private-content/private-content.php
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: content, private, shortcode
private-content/private-content.php Passed 13 tests
The principal PHP file in "Private Content" v. 6.5.0 is loaded by WordPress automatically on each request
102 characters long description:
Display a portion of a post content only to users of a specific role or to a single or multiple users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected782 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 120 | 435 | 539 |
Markdown | 3 | 93 | 0 | 243 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 91.00 |
▷ Minimum class complexity | 91.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 6.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 35.29% |
▷ Protected methods | 5 | 29.41% |
▷ Private methods | 6 | 35.29% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin