84% hide-wpengine-tab

Code Review | Hide WPEngine Tab

WordPress plugin Hide WPEngine Tab scored84%from 54 tests.

About plugin

  • Plugin page: hide-wpengine-tab
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Dec 6, 2012
  • Latest release: Sep 3, 2015
  • Number of updates: 15
  • Update frequency: every 67.9 days
  • Top authors: akv2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,775 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.79ms] Passed 4 tests

A check of server-side resources used by Hide WPEngine Tab
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.94 ▲1.16
Dashboard /wp-admin3.33 ▼0.0247.67 ▼15.23
Posts /wp-admin/edit.php3.38 ▲0.0249.02 ▲0.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.22 ▼5.93
Media Library /wp-admin/upload.php3.25 ▲0.0239.18 ▲3.89

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Hide WPEngine Tab
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.391.81 ▼0.1443.63 ▲0.55
Dashboard /wp-admin2,192 ▲155.56 ▼0.1286.02 ▼10.2438.68 ▼1.62
Posts /wp-admin/edit.php2,100 ▼32.05 ▲0.0540.27 ▲4.5136.29 ▲2.84
Add New Post /wp-admin/post-new.php1,545 ▲1423.48 ▲0.09681.53 ▼5.1155.21 ▼1.94
Media Library /wp-admin/upload.php1,400 ▼34.34 ▲0.06112.29 ▲5.6047.43 ▲1.39

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 | 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/hide-wpengine-tab/hide-wpengine-tab.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === hide-wpengine-tab === )
  • Screenshots: Screenshot #1 (Settings page) image required
You can look at the official readme.txt

hide-wpengine-tab/hide-wpengine-tab.php Passed 13 tests

The main file in "Hide WPEngine Tab" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
131 characters long description:
This plugin makes it super easy to limit access to the WP Engine tab. This protects the staging environment and other WPE actions.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected151 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12940138
JavaScript151013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png73.83KB26.18KB▼ 64.53%