84% admin-command-palette

Code Review | Admin Command Palette

WordPress plugin Admin Command Palette scored84%from 54 tests.

About plugin

  • Plugin page: admin-command-pal...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.4
  • WordPress version: 6.3.1
  • First release: Aug 21, 2015
  • Latest release: May 1, 2017
  • Number of updates: 10
  • Update frequency: every 61.9 days
  • Top authors: gwelser (60%)jhned (50%)

Code review

54 tests

User reviews

4 reviews

Install metrics

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

Analyzing server-side resources used by Admin Command Palette
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.52 ▲5.20
Dashboard /wp-admin3.47 ▲0.1752.84 ▼1.31
Posts /wp-admin/edit.php3.59 ▲0.2353.54 ▲2.14
Add New Post /wp-admin/post-new.php6.07 ▲0.1995.58 ▼1.82
Media Library /wp-admin/upload.php3.39 ▲0.1742.48 ▲3.23
Admin Command Palette /wp-admin/options-general.php?page=CNP_ACP3.3843.56

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Admin Command Palette
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲12213.79 ▼0.611.78 ▲0.2045.06 ▲2.89
Dashboard /wp-admin2,274 ▲865.45 ▼0.41124.17 ▲13.3537.81 ▼3.79
Posts /wp-admin/edit.php2,160 ▲682.69 ▲0.6347.78 ▲5.9635.96 ▼1.29
Add New Post /wp-admin/post-new.php1,578 ▲4523.52 ▲0.36673.85 ▲10.2058.43 ▲10.13
Media Library /wp-admin/upload.php1,459 ▲714.71 ▲0.46103.34 ▼11.2739.95 ▼6.65
Admin Command Palette /wp-admin/options-general.php?page=CNP_ACP1,1312.3732.1830.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'ACP_Data' not found in wp-content/plugins/admin-command-palette/admin/class-acp-admin-pages.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/admin-command-palette/admin/partials/plugin-acp-display.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'ACP_Data' not found in wp-content/plugins/admin-command-palette/admin/class-acp-admin-actions.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'ACP_Data' not found in wp-content/plugins/admin-command-palette/admin/class-acp-user-content.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: admin, admin search, admin navigation, ux, actions...

admin-command-palette/admin-command-palette.php 92% from 13 tests

The entry point to "Admin Command Palette" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin26,692 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript138,1643,62125,727
PHP15364653695
Sass1535250
JSON10013
Markdown1106
CSS1011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.45
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes440.00%
Methods38
▷ Static methods25.26%
▷ Public methods3489.47%
▷ Protected methods00.00%
▷ Private methods410.53%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin