100% muv-hide-preview

Code Review | muv - Hide Preview

WordPress plugin muv - Hide Preview scored 100% from 54 tests.

About plugin

  • Plugin page: muv-hide-preview
  • Plugin version: 1.7.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4.2
  • WordPress version: 5.8.1
  • First release: Mar 23, 2017
  • Latest release: Jul 21, 2020
  • Number of updates: 26
  • Update frequency: every 46.7 days
  • Top authors: meinsundvogel (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 2,160 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼142.31ms] Passed 4 tests

Analyzing server-side resources used by muv - Hide Preview
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0534.93 ▲0.43
Dashboard /wp-admin3.20 ▲0.1459.21 ▲16.01
Posts /wp-admin/edit.php3.31 ▲0.2051.35 ▲4.59
Add New Post /wp-admin/post-new.php5.55 ▲0.1289.86 ▼573.56
Media Library /wp-admin/upload.php3.14 ▲0.1435.10 ▼0.70
Einstellungen /wp-admin/admin.php?page=muv-hp-einstellungen3.1130.46
/wp-admin/admin.php?page=muv-hp-anzeige-link-neu3.0931.19

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 3 new options
New tables
wp_muv_sh_intversion
New WordPress options
muv-hp-verstecken-bereiche-inkl
muv-hp-verstecken-bereiche-exkl
muv-hp-verstecken-aktiv

Browser metrics Passed 4 tests

Checking browser requirements for muv - Hide Preview
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11115.78 ▲0.539.88 ▲0.4246.33 ▼3.64
Dashboard /wp-admin2,991 ▲606.12 ▲0.13148.90 ▲4.29132.73 ▲19.30
Posts /wp-admin/edit.php2,785 ▲462.70 ▼0.0168.42 ▲4.7585.25 ▼2.58
Add New Post /wp-admin/post-new.php1,625 ▼5818.90 ▲0.13386.03 ▼0.76108.39 ▼0.38
Media Library /wp-admin/upload.php1,850 ▲435.03 ▼0.01134.63 ▼34.09139.01 ▲25.12
Einstellungen /wp-admin/admin.php?page=muv-hp-einstellungen1,1022.0552.6679.66
/wp-admin/admin.php?page=muv-hp-anzeige-link-neu8741.8540.8441.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

muv-hide-preview/muv-hide-preview.php Passed 13 tests

The main PHP script in "muv - Hide Preview" version 1.7.1 is automatically included on every request by WordPress
137 characters long description:
Versteckt in der Entwicklungsphase befindende einzelne Seiten, Unterordner oder auch ganze Websites vor den Augen nicht befugter Dritter!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin12,366 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
SVG3008,611
CSS31,39232,894
PHP1848745853
Markdown1808

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.13
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods54
▷ Static methods54100.00%
▷ Public methods4888.89%
▷ Protected methods00.00%
▷ Private methods611.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants1173.33%
▷ Class constants426.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png0.54KB0.71KB0.00%