84% hideremove-text

Code Review | Hide/Remove Text

WordPress plugin Hide/Remove Text scored 84% from 54 tests.

About plugin

  • Plugin page: hideremove-text
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.4
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: Apr 14, 2020
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: trivetechnology (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 453 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.03MB] [CPU: ▼4.95ms] Passed 4 tests

A check of server-side resources used by Hide/Remove Text
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.10 ▼2.76
Dashboard /wp-admin3.33 ▲0.0347.83 ▼2.97
Posts /wp-admin/edit.php3.38 ▲0.0347.46 ▲0.86
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.73 ▼13.27
Media Library /wp-admin/upload.php3.26 ▲0.0336.56 ▼0.81
Hide/Remove Text /wp-admin/options-general.php?page=hide_text3.2231.78

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 12 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
hide_text_url
widget_theysaidso_widget
widget_recent-comments
hide_text_admin_hidden
hide_text_regex
hide_text_phone_number
hide_text_replace_text
...

Browser metrics Passed 4 tests

A check of browser resources used by Hide/Remove Text
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.19 ▼1.621.83 ▼0.0341.63 ▼4.67
Dashboard /wp-admin2,210 ▲254.87 ▼0.04108.31 ▲3.9038.83 ▼1.97
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0336.21 ▼0.0331.39 ▼0.64
Add New Post /wp-admin/post-new.php1,536 ▲523.07 ▲4.98600.46 ▼47.1360.88 ▼18.54
Media Library /wp-admin/upload.php1,389 ▲14.21 ▼0.02100.69 ▼5.1744.47 ▼0.31
Hide/Remove Text /wp-admin/options-general.php?page=hide_text9102.0324.2829.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 12 options in the database
    • hide_text_phone_number
    • hide_text_admin_hidden
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • hide_text_email
    • hide_text_url
    • theysaidso_admin_options
    • hide_text_replace_text
    • widget_recent-comments
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 2× 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/hideremove-text/hide-text.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hideremove-text/promo-hunt.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: hide, remove, regex

hideremove-text/hide-text.php 92% from 13 tests

The principal PHP file in "Hide/Remove Text" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hideremove-text.php" instead of "hide-text.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin519 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12913252
PHP22718214
CSS16353

PHP code Passed 2 tests

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

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.36MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/egg2.png92.70KB34.49KB▼ 62.79%
images/star1.png16.11KB15.85KB▼ 1.58%
images/gift1.png259.66KB111.90KB▼ 56.91%