84% cmse-admin-access

Code Review | CMSE Secret Admin

WordPress plugin CMSE Secret Admin scored84%from 54 tests.

About plugin

  • Plugin page: cmse-admin-access
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Sep 30, 2014
  • Latest release: Sep 30, 2014
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: websitedons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /600 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
Installer ran successfully

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

Server-side resources used by CMSE Secret Admin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.10 ▲3.50
Dashboard /wp-admin3.32 ▲0.0250.87 ▲0.66
Posts /wp-admin/edit.php3.37 ▲0.0149.45 ▼0.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.52 ▼26.02
Media Library /wp-admin/upload.php3.24 ▲0.0138.70 ▼0.40

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

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

Browser metrics Passed 4 tests

CMSE Secret Admin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.19 ▼0.181.73 ▼0.0445.75 ▲2.04
Dashboard /wp-admin2,192 ▲125.57 ▼0.0686.32 ▼4.4244.65 ▼4.95
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0639.21 ▲2.9837.60 ▲0.80
Add New Post /wp-admin/post-new.php1,528 ▼023.07 ▼0.04660.56 ▼40.2151.51 ▼4.95
Media Library /wp-admin/upload.php1,400 ▼34.13 ▲0.0699.69 ▼15.2643.54 ▼4.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cmse-admin-access/cmse-secret-admin.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cmse-admin-access/doc.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: redirect, admin

cmse-admin-access/cmse-secret-admin.php 85% from 13 tests

The entry point to "CMSE Secret Admin" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cmse-admin-access.php" instead of "cmse-secret-admin.php")
  • Description: The description should be shorter than 140 characters (currently 189 characters long)

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
Good job! No executable or dangerous file extensions detected51 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2171051

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions5
▷ Named functions5100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png13.52KB7.10KB▼ 47.46%