84% shift-short-wp-admin-theme

Code Review | SHIFT Short WP Admin Theme

WordPress plugin SHIFT Short WP Admin Theme scored84%from 54 tests.

About plugin

  • Plugin page: shift-short-wp-ad...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 17, 2015
  • Latest release: Jun 24, 2015
  • Number of updates: 16
  • Update frequency: every 0.8 days
  • Top authors: brshift (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /6,842 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by SHIFT Short WP Admin Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.09 ▼3.40
Dashboard /wp-admin3.31 ▲0.0142.52 ▼6.23
Posts /wp-admin/edit.php3.36 ▲0.0147.69 ▲0.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.67 ▼16.94
Media Library /wp-admin/upload.php3.23 ▲0.0133.75 ▼1.61

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 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

An overview of browser requirements for SHIFT Short WP Admin Theme
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5314.47 ▲0.181.70 ▲0.0458.01 ▲18.45
Dashboard /wp-admin2,196 ▲114.87 ▼1.02111.07 ▲7.6480.54 ▲35.79
Posts /wp-admin/edit.php2,081 ▼82.16 ▲0.1539.12 ▲3.1745.04 ▲13.05
Add New Post /wp-admin/post-new.php1,516 ▼2623.24 ▲5.09639.54 ▲37.5786.78 ▲28.12
Media Library /wp-admin/upload.php1,380 ▲14.16 ▼0.0398.96 ▼0.0651.40 ▲4.58

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shift-short-wp-admin-theme/shift-short-wp-admin-theme.php:33

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
The official readme.txt might help

shift-short-wp-admin-theme/shift-short-wp-admin-theme.php Passed 13 tests

The primary PHP file in "SHIFT Short WP Admin Theme" version 1.3 is used by WordPress to initiate all plugin functionality
49 characters long description:
Clean the WordPress Dashboard and get more space!

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 plugin2,032 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG1001,832
CSS400168
PHP173132

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin