10% addc

Code Review | AddC

WordPress plugin AddC scored10%from 54 tests.

About plugin

  • Plugin page: addc
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • 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 /701 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/addc/AddC.php+82
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.93ms] Passed 4 tests

A check of server-side resources used by AddC
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.58 ▲4.43
Dashboard /wp-admin3.31 ▲0.0045.75 ▼4.41
Posts /wp-admin/edit.php3.36 ▲0.0052.09 ▼2.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.60 ▼17.23
Media Library /wp-admin/upload.php3.23 ▲0.0038.89 ▲0.88

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for AddC
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.15 ▼0.202.12 ▲0.2145.40 ▲0.14
Dashboard /wp-admin2,195 ▲305.63 ▼0.0091.16 ▼1.3541.72 ▼4.46
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0439.57 ▲1.6841.69 ▲2.84
Add New Post /wp-admin/post-new.php1,526 ▼223.49 ▲0.21650.64 ▼33.7549.66 ▼11.41
Media Library /wp-admin/upload.php1,400 ▲64.27 ▲0.10102.16 ▼4.4743.30 ▼3.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Requires at least: Version format is invalid
You can take inspiration from this readme.txt

addc/AddC.php 92% from 13 tests

"AddC" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("addc.php" instead of "AddC.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12971

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin