83% ctrlcmd-save

Code Review | CTRL/CMD Save for WordPress

WordPress plugin CTRL/CMD Save for WordPress scored83%from 54 tests.

About plugin

  • Plugin page: ctrlcmd-save
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 17, 2018
  • Latest release: Jan 17, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: dpoakaspine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /564 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.00MB] [CPU: ▼2.60ms] Passed 4 tests

Server-side resources used by CTRL/CMD Save for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.75 ▼4.67
Dashboard /wp-admin3.31 ▲0.0145.22 ▲0.23
Posts /wp-admin/edit.php3.36 ▲0.0049.85 ▼0.59
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.55 ▼5.38
Media Library /wp-admin/upload.php3.23 ▲0.0035.89 ▲3.48

Server storage [IO: ▲0.00MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for CTRL/CMD Save for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.46 ▼0.301.70 ▼0.5643.58 ▼0.67
Dashboard /wp-admin2,206 ▲245.86 ▼0.0298.94 ▼8.5740.30 ▼5.16
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0641.01 ▲5.8236.51 ▲3.61
Add New Post /wp-admin/post-new.php1,530 ▼323.15 ▼0.07582.95 ▼60.6244.53 ▼4.50
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0894.95 ▼2.9543.90 ▼0.73

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ctrlcmd-save/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
  • Requires php: Version format is invalid
The official readme.txt might help

ctrlcmd-save/index.php 92% from 13 tests

The entry point to "CTRL/CMD Save for WordPress" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ctrlcmd-save.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected25 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16018
PHP1677

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin