10% cms-admin-area

Code Review | CMS admin area

WordPress plugin CMS admin area scored 10% from 54 tests.

About plugin

  • Plugin page: cms-admin-area
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.6
  • WordPress version: 5.8.1
  • First release: Sep 8, 2012
  • Latest release: Jun 24, 2013
  • Number of updates: 18
  • Update frequency: every 16.1 days
  • Top authors: netbiel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,760 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/cms-admin-area/adminarea.php+21
    Function create_function() is deprecated

Server metrics [RAM: ▼1.62MB] [CPU: ▼197.17ms] Passed 4 tests

Server-side resources used by CMS admin area
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.01 ▼0.716.38 ▼14.71
Dashboard /wp-admin2.03 ▼1.025.86 ▼45.08
Posts /wp-admin/edit.php2.03 ▼1.086.00 ▼45.00
Add New Post /wp-admin/post-new.php2.03 ▼3.406.22 ▼661.41
Media Library /wp-admin/upload.php2.03 ▼0.985.90 ▼37.18
Admin Area Options /wp-admin/options-general.php?page=admin-area-options2.037.61

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 3 new options
New WordPress options

Browser metrics Passed 4 tests

CMS admin area: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,849 ▲25317.51 ▲1.6410.48 ▼0.0048.45 ▲3.48
Dashboard /wp-admin3,129 ▲2058.01 ▲1.86171.08 ▲14.52103.76 ▼12.49
Posts /wp-admin/edit.php2,924 ▲1854.42 ▲1.7187.76 ▲18.9390.41 ▼1.82
Add New Post /wp-admin/post-new.php1,626 ▲12621.13 ▲2.59299.50 ▼87.41134.22 ▲18.27
Media Library /wp-admin/upload.php1,770 ▼374.71 ▼0.31162.01 ▼4.45117.43 ▼22.32
Admin Area Options /wp-admin/options-general.php?page=admin-area-options1,4253.8078.8892.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/cms-admin-area/adminarea.php+21
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 3 options
    • admin_area_site_settings
    • admin_area_display_settings
    • admin_area_extend_settings

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=admin-area-options
    • > Deprecated in wp-content/plugins/cms-admin-area/adminarea.php+21
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cms-admin-area/adminarea.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cms-admin-area/views/option-page.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=admin-area-options
    • > Javascript (severe) in unknown
    /wp-content/plugins/cms-admin-area/assets/common.js?ver=1.0 4:34 Uncaught TypeError: jQuery(...).live is not a function


Plugin configuration 90% 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:
  • Screenshots: Screenshot #1 (user-friendly horizontal menu and new dashboard metaboxes) image required
The official readme.txt might help

cms-admin-area/adminarea.php 85% from 13 tests

"CMS admin area" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 203 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("cms-admin-area.php" instead of "adminarea.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
Good job! No executable or dangerous file extensions detected1,496 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PO File26161154

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity18.00
▷ Minimum class complexity2.00
▷ Maximum class complexity46.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods58.93%
▷ Public methods56100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png18.53KB18.04KB▼ 2.66%
assets/images/theme.png2.04KB1.93KB▼ 5.49%
assets/images/Database.png0.80KB0.75KB▼ 6.38%