89% wp-hide-add-new-theme

Code Review | Wp Hide Add New Theme

WordPress plugin Wp Hide Add New Theme scored89%from 54 tests.

About plugin

  • Plugin page: wp-hide-add-new-t...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 23, 2019
  • Latest release: Feb 23, 2019
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: ismail99 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /476 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
Install script ran successfully

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

A check of server-side resources used by Wp Hide Add New Theme
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0039.08 ▲2.29
Dashboard /wp-admin3.30 ▼0.0443.51 ▼12.34
Posts /wp-admin/edit.php3.36 ▼0.0041.57 ▼4.72
Add New Post /wp-admin/post-new.php5.89 ▼0.0079.60 ▼17.00
Media Library /wp-admin/upload.php3.23 ▼0.0034.36 ▲4.48

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wp Hide Add New Theme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,723 ▼2314.44 ▼0.112.00 ▲0.4941.82 ▲1.39
Dashboard /wp-admin2,121 ▼545.52 ▼0.1982.40 ▼17.0137.32 ▼2.74
Posts /wp-admin/edit.php2,032 ▼682.02 ▲0.0335.32 ▼0.2534.77 ▲2.51
Add New Post /wp-admin/post-new.php1,474 ▼5423.10 ▼0.10683.19 ▼3.0851.38 ▼0.77
Media Library /wp-admin/upload.php1,335 ▼654.16 ▼0.1598.51 ▼0.1242.79 ▼0.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: You can take inspiration from this readme.txt

wp-hide-add-new-theme/wp-hide-add-new-theme.php 92% from 13 tests

The primary PHP file in "Wp Hide Add New Theme" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 179 characters long)

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
Good job! No executable or dangerous file extensions detected16 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP201416

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin