84% editor-profile

Code Review | Editor Profile

WordPress plugin Editor Profile scored84%from 54 tests.

About plugin

  • Plugin page: editor-profile
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.5.1
  • WordPress version: 6.3.1
  • First release: Apr 29, 2016
  • Latest release: May 10, 2016
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: bi0xid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /925 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼0.52ms] Passed 4 tests

A check of server-side resources used by Editor Profile
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.91 ▲7.81
Dashboard /wp-admin3.31 ▼0.0344.49 ▼14.47
Posts /wp-admin/edit.php3.36 ▲0.0149.11 ▲3.79
Add New Post /wp-admin/post-new.php5.91 ▲0.03581.13 ▲476.58
Media Library /wp-admin/upload.php3.24 ▲0.0134.05 ▲0.77

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Editor Profile
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.341.91 ▲0.2742.52 ▲1.14
Dashboard /wp-admin2,206 ▲184.87 ▲0.02109.58 ▼2.6239.45 ▼5.09
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0339.88 ▲3.2234.55 ▼1.27
Add New Post /wp-admin/post-new.php1,533 ▲1422.96 ▲0.07658.34 ▼9.6850.94 ▼5.48
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0296.48 ▲0.0341.04 ▲0.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editor-profile/editor-profile.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: profile, role, editor

editor-profile/editor-profile.php Passed 13 tests

The principal PHP file in "Editor Profile" v. 1.0.2 is loaded by WordPress automatically on each request
62 characters long description:
Adds an editor profile that can edit only new posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin28 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111427
JavaScript1111

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin