78% space-admin-theme

Code Review | ๐Ÿš€ Space Admin Theme

WordPress plugin ๐Ÿš€ Space Admin Theme scored 78% from 54 tests.

About plugin

  • Plugin page: space-admin-theme
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 18, 2019
  • Latest release: Dec 7, 2022
  • Number of updates: 53
  • Update frequency: every 23.5 days
  • Top authors: stefanpejcic (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,555 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.76MB] [CPU: ▲38.09ms] Passed 4 tests

Server-side resources used by ๐Ÿš€ Space Admin Theme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.7051.48 ▲11.01
Dashboard /wp-admin4.12 ▲0.8297.57 ▲46.33
Posts /wp-admin/edit.php4.17 ▲0.8190.77 ▲45.74
Add New Post /wp-admin/post-new.php6.66 ▲0.77143.70 ▲50.73
Media Library /wp-admin/upload.php4.01 ▲0.7880.41 ▲49.28
๐Ÿš€ Column Manager /wp-admin/tools.php?page=space-admin-column-manager3.9975.38
๐Ÿš€ Menu Manager /wp-admin/tools.php?page=space-admin-menu-editor3.9982.26
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category3.9151.46
๐Ÿš€ Widget Manager /wp-admin/tools.php?page=space-admin-widget-manager4.0065.71
๐Ÿš€ Admin Theme /wp-admin/themes.php?page=space-options-general4.0266.83
/wp-admin/themes.php?page=3.9862.51

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for ๐Ÿš€ Space Admin Theme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,731 ▼414.50 ▼0.121.90 ▼0.2057.73 ▲6.42
Dashboard /wp-admin2,140 ▼485.02 ▼0.89104.04 ▼11.0757.38 ▲12.32
Posts /wp-admin/edit.php2,049 ▼402.47 ▲0.4449.51 ▲13.2048.72 ▲15.83
Add New Post /wp-admin/post-new.php1,504 ▼1623.30 ▲0.18663.19 ▲1.6262.54 ▲12.54
Media Library /wp-admin/upload.php1,333 ▼524.36 ▲0.06113.73 ▲11.1659.72 ▲16.44
๐Ÿš€ Column Manager /wp-admin/tools.php?page=space-admin-column-manager1,1392.1244.1849.59
๐Ÿš€ Menu Manager /wp-admin/tools.php?page=space-admin-menu-editor6,7442.3849.1075.12
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category310.440.068.37
๐Ÿš€ Widget Manager /wp-admin/tools.php?page=space-admin-widget-manager1,1202.0630.4342.42
๐Ÿš€ Admin Theme /wp-admin/themes.php?page=space-options-general1,4633.4758.8169.40
/wp-admin/themes.php?page=7361.8629.0232.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/space-admin-theme/inc/menus.php on line 3
    • > PHP Notice
      Undefined variable: page_info in wp-content/plugins/space-admin-theme/inc/network.php on line 3
    • > PHP Notice
      Undefined variable: page_info in wp-content/plugins/space-admin-theme/inc/general.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/space-admin-theme/inc/widgets.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/space-admin-theme/inc/columns.php:15
    • > PHP Notice
      Undefined variable: page_info in wp-content/plugins/space-admin-theme/inc/menus.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/space-admin-theme/inc/general.php:16
    • > PHP Notice
      Undefined variable: page_info in wp-content/plugins/space-admin-theme/inc/widgets.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/space-admin-theme/inc/general.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/space-admin-theme/inc/network.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit-tags.php?taxonomy=link_category
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=link_category - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/themes.php?page=space-options-general
    • > Network (severe)
    https://pluginsbay.com/wp-content/uploads/2019/07/5-star-review.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (23 tag instead of maximum 10)
The official readme.txt is a good inspiration

space-admin-theme/index.php 92% from 13 tests

The main file in "๐Ÿš€ Space Admin Theme" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("space-admin-theme.php" instead of "index.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
Success! There were no dangerous files found in this plugin10,030 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
CSS5271415,529
PHP208012094,090
JavaScript214441411

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity44.58
▷ Minimum class complexity3.00
▷ Maximum class complexity140.00
Average method complexity5.89
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods107
▷ Static methods107100.00%
▷ Public methods107100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/5-star-review.png18.43KB9.59KB▼ 47.94%