84% wp-save-hijack

Code Review | WordPress Save Hijack

WordPress plugin WordPress Save Hijack scored84%from 54 tests.

About plugin

  • Plugin page: wp-save-hijack
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9
  • WordPress version: 6.3.1
  • First release: Jun 21, 2014
  • Latest release: Jun 22, 2014
  • Number of updates: 3
  • Update frequency: every 6.0 days
  • Top authors: pressedsites (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /927 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.20MB] [CPU: ▼20.75ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Save Hijack
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.05 ▼10.66
Dashboard /wp-admin3.11 ▼0.1930.39 ▼21.46
Posts /wp-admin/edit.php3.24 ▼0.1134.67 ▼14.26
Add New Post /wp-admin/post-new.php5.44 ▼0.4570.53 ▼36.61
Media Library /wp-admin/upload.php3.18 ▼0.0527.87 ▼6.86

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Save Hijack
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.77 ▼0.612.09 ▼0.1349.36 ▼1.38
Dashboard /wp-admin2,209 ▲204.84 ▼0.12102.07 ▼6.6343.62 ▼1.35
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0640.61 ▼1.2736.40 ▼6.02
Add New Post /wp-admin/post-new.php1,537 ▼523.14 ▲5.01649.35 ▲36.4166.97 ▲10.83
Media Library /wp-admin/upload.php1,379 ▼94.18 ▼0.02100.24 ▲0.7444.00 ▼0.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-save-hijack/wp-save-hijack.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: save, editor, post, shortcuts, posts...

wp-save-hijack/wp-save-hijack.php Passed 13 tests

The main file in "WordPress Save Hijack" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Enable Ctrl+s/Cmd+s to saves in posts through wordpress admin panel.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11813

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code2.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin