10% addc

Code Review | AddC

WordPress plugin AddC scored 10% from 54 tests.

About plugin

  • Plugin page: addc
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Aug 30, 2017
  • Latest release: Aug 30, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: shaygan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 524 total downloads


Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Parse error in wp-content/plugins/addc/AddC.php+82
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.02MB] [CPU: ▼298.24ms] Passed 4 tests

An overview of server-side resources used by AddC
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0156.06 ▲7.04
Dashboard /wp-admin3.41 ▲0.0032.18 ▼0.82
Posts /wp-admin/edit.php3.65 ▲0.0035.52 ▼3.45
Add New Post /wp-admin/post-new.php6.88 ▼0.0991.20 ▼1,185.87
Media Library /wp-admin/upload.php3.30 ▲0.0023.37 ▼2.82

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AddC
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲515.82 ▲0.165.84 ▼1.502.42 ▼0.05
Dashboard /wp-admin2,895 ▲346.08 ▼0.02118.68 ▼19.91159.41 ▲1.46
Posts /wp-admin/edit.php2,685 ▼93.23 ▼0.0061.30 ▼1.42140.01 ▼4.76
Add New Post /wp-admin/post-new.php1,661 ▼9116.23 ▼5.29429.99 ▼31.26160.09 ▼1.12
Media Library /wp-admin/upload.php1,695 ▼35.51 ▲0.00142.04 ▼0.79187.58 ▼2.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/addc/AddC.php on line 82

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 93% 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
Attributes that need to be fixed:
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

addc/AddC.php 92% from 13 tests

This is the main PHP file of "AddC" version 1.0, 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 ("addc.php" instead of "AddC.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG images were found in this plugin