10% per-post-editors

Code Review | Per Post Editors

WordPress plugin Per Post Editors scored10%from 54 tests.

About plugin

  • Plugin page: per-post-editors
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2014
  • Latest release: Feb 1, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: lunarmobiscuit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,549 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.40 ▼35.95
Dashboard /wp-admin2.08 ▼1.227.08 ▼46.55
Posts /wp-admin/edit.php2.08 ▼1.275.66 ▼42.06
Add New Post /wp-admin/post-new.php2.08 ▼3.805.31 ▼80.57
Media Library /wp-admin/upload.php2.08 ▼1.155.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.16 ▼1.031.68 ▼0.3538.91 ▼7.78
Dashboard /wp-admin2,206 ▲154.84 ▼0.0896.17 ▼20.1939.11 ▼4.62
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0939.32 ▲1.9034.31 ▲4.62
Add New Post /wp-admin/post-new.php1,545 ▲2618.34 ▼5.11592.95 ▼91.3553.19 ▼3.29
Media Library /wp-admin/upload.php1,391 ▲34.19 ▲0.0497.30 ▼6.0642.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

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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP12218102

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 code0.88
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png41.55KB11.88KB▼ 71.41%