Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/per-post-editors/per-post-editors.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; Editors has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼51.28ms] Passed 4 tests
Server-side resources used by Per Post Editors
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.40 ▼35.95 |
Dashboard /wp-admin | 2.08 ▼1.22 | 7.08 ▼46.55 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 5.66 ▼42.06 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 5.31 ▼80.57 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.04 ▼32.67 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Per Post Editors
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.16 ▼1.03 | 1.68 ▼0.35 | 38.91 ▼7.78 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼0.08 | 96.17 ▼20.19 | 39.11 ▼4.62 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.09 | 39.32 ▲1.90 | 34.31 ▲4.62 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.34 ▼5.11 | 592.95 ▼91.35 | 53.19 ▼3.29 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▲0.04 | 97.30 ▼6.06 | 42.26 ▼4.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/per-post-editors/per-post-editors.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; Editors has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/per-post-editors/per-post-editors.php:110
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (This screen shot shows the meta box added to each page/post) image missing
per-post-editors/per-post-editors.php Passed 13 tests
This is the main PHP file of "Per Post Editors" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
30 characters long description:
Allow editors per post or page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin102 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 18 | 102 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.88 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 41.55KB | 11.88KB | ▼ 71.41% |