90% skyrise-hide-wp-admin

Code Review | Skyrise Hide WP Admin

WordPress plugin Skyrise Hide WP Admin scored90%from 54 tests.

About plugin

  • Plugin page: skyrise-hide-wp-a...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2018
  • Latest release: Jan 12, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: skyrisetech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /596 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.19ms] Passed 4 tests

A check of server-side resources used by Skyrise Hide WP Admin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.67 ▼5.08
Dashboard /wp-admin3.32 ▲0.0251.03 ▼2.49
Posts /wp-admin/edit.php3.38 ▲0.0245.36 ▼3.71
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.63 ▼9.48
Media Library /wp-admin/upload.php3.25 ▲0.0239.52 ▲5.47

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Skyrise Hide WP Admin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.581.80 ▼0.5942.56 ▼4.96
Dashboard /wp-admin2,189 ▲155.51 ▼0.0083.15 ▼13.9641.74 ▼3.71
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0134.97 ▼1.7034.13 ▼3.42
Add New Post /wp-admin/post-new.php1,528 ▼323.30 ▲0.19681.32 ▲73.1855.47 ▲3.90
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.02111.97 ▲4.1848.17 ▲5.04

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

skyrise-hide-wp-admin/skyrise-hide-wp-admin.php Passed 13 tests

The primary PHP file in "Skyrise Hide WP Admin" version 1.0.0 is used by WordPress to initiate all plugin functionality
60 characters long description:
Skyrise plugin to hide wp-admin page when user is not logged

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin62 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3182962

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin