84% hide-wp-engine-legacy-staging

Code Review | Hide WP Engine Legacy Staging

WordPress plugin Hide WP Engine Legacy Staging scored84%from 54 tests.

About plugin

  • Plugin page: hide-wp-engine-le...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: May 22, 2019
  • Latest release: May 29, 2019
  • Number of updates: 10
  • Update frequency: every 0.8 days
  • Top authors: mattrad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,086 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by Hide WP Engine Legacy Staging
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.09 ▼2.76
Dashboard /wp-admin3.31 ▲0.0048.43 ▼3.02
Posts /wp-admin/edit.php3.36 ▲0.0049.35 ▲2.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.55 ▼3.90
Media Library /wp-admin/upload.php3.23 ▲0.0036.94 ▼2.23

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Hide WP Engine Legacy Staging
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.24 ▼0.041.75 ▼0.7142.42 ▼5.12
Dashboard /wp-admin2,197 ▲175.64 ▼0.0588.15 ▼8.5240.61 ▼2.79
Posts /wp-admin/edit.php2,102 ▼11.94 ▼0.0336.90 ▲2.0536.71 ▲3.94
Add New Post /wp-admin/post-new.php1,528 ▲223.05 ▼0.52674.10 ▼33.0164.48 ▲10.95
Media Library /wp-admin/upload.php1,405 ▲54.18 ▲0.0495.35 ▼13.9446.79 ▼0.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 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/hide-wp-engine-legacy-staging/hide-wp-engine-legacy-staging.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: wpengine

hide-wp-engine-legacy-staging/hide-wp-engine-legacy-staging.php Passed 13 tests

"Hide WP Engine Legacy Staging" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
122 characters long description:
Hide WP Engine's Legacy Staging links, to avoid confusion with the newer production, staging and development environments.

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
Success! There were no dangerous files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121511

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin