89% editorheadlinejump

Code Review | EditorHeadlineJump

WordPress plugin EditorHeadlineJump scored89%from 54 tests.

About plugin

  • Plugin page: editorheadlinejump
  • Plugin version: 0.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Dec 3, 2018
  • Latest release: Feb 11, 2021
  • Number of updates: 19
  • Update frequency: every 42.2 days
  • Top authors: macha795 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,105 total downloads

Benchmarks

Plugin footprint 83% from 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.02MB] [CPU: ▼10.00ms] Passed 4 tests

Analyzing server-side resources used by EditorHeadlineJump
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0240.33 ▼1.09
Dashboard /wp-admin3.37 ▼0.0145.03 ▼21.55
Posts /wp-admin/edit.php3.42 ▲0.0348.15 ▼1.31
Add New Post /wp-admin/post-new.php5.97 ▲0.0583.30 ▼16.05
Media Library /wp-admin/upload.php3.29 ▲0.0334.63 ▲0.11

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

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

Browser metrics Passed 4 tests

A check of browser resources used by EditorHeadlineJump
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.181.58 ▼0.1740.70 ▼3.59
Dashboard /wp-admin2,200 ▲125.85 ▲0.06103.38 ▼13.3239.01 ▼4.41
Posts /wp-admin/edit.php2,098 ▲92.06 ▲0.0534.94 ▼0.3130.74 ▼3.91
Add New Post /wp-admin/post-new.php6,225 ▲4,70626.09 ▲2.98895.58 ▲194.3553.11 ▲0.03
Media Library /wp-admin/upload.php1,385 ▼64.24 ▲0.0693.70 ▼1.2140.18 ▼4.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: You can look at the official readme.txt

editorheadlinejump/mch-editor-headline-jump.php 92% from 13 tests

The principal PHP file in "EditorHeadlineJump" v. 0.0.6 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("editorheadlinejump.php" instead of "mch-editor-headline-jump.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected196 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP26850165
JavaScript51030
CSS1001

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 code0.33
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods321.43%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin