10% amoratis-chmod

Code Review | Amoratis CHMOD

WordPress plugin Amoratis CHMOD scored10%from 54 tests.

About plugin

  • Plugin page: amoratis-chmod
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.5-5.6.2
  • WordPress version: 6.3.1
  • First release: Sep 4, 2014
  • Latest release: Mar 1, 2021
  • Number of updates: 19
  • Update frequency: every 124.7 days
  • Top authors: jackamoratis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /895 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.

Server metrics [RAM: ▼1.94MB] [CPU: ▼57.44ms] Passed 4 tests

An overview of server-side resources used by Amoratis CHMOD
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.415.53 ▼34.94
Dashboard /wp-admin2.07 ▼1.275.61 ▼56.44
Posts /wp-admin/edit.php2.07 ▼1.285.38 ▼46.44
Add New Post /wp-admin/post-new.php2.07 ▼3.815.30 ▼91.94
Media Library /wp-admin/upload.php2.07 ▼1.155.78 ▼30.46

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Amoratis CHMOD
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.26 ▼0.925.15 ▲3.3037.80 ▼4.84
Dashboard /wp-admin2,206 ▲184.83 ▼0.06110.56 ▼3.6341.16 ▲1.45
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0539.61 ▼1.2634.17 ▼1.39
Add New Post /wp-admin/post-new.php1,520 ▼2223.38 ▲5.26640.89 ▲3.8356.52 ▼0.97
Media Library /wp-admin/upload.php1,391 ▼04.26 ▲0.1195.97 ▼3.6942.39 ▼1.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amoratis-chmod/amoratis-chmod-main.php:61

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

amoratis-chmod/amoratis-chmod-main.php 85% from 13 tests

This is the main PHP file of "Amoratis CHMOD" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("amoratis-chmod.php" instead of "amoratis-chmod-main.php")
  • Description: The description should be shorter than 140 characters (currently 270 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin182 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21521147
PHP1194430
CSS1005

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 were not PNG files found in your plugin