84% simple-wp-colorfull-accordion

Code Review | Simple Wp colorfull Accordion

WordPress plugin Simple Wp colorfull Accordion scored84%from 54 tests.

About plugin

  • Plugin page: simple-wp-colorfu...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Jan 7, 2022
  • Number of updates: 12
  • Update frequency: every 159.8 days
  • Top authors: nayon46 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.54ms] Passed 4 tests

Server-side resources used by Simple Wp colorfull Accordion
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.23 ▲1.47
Dashboard /wp-admin3.32 ▼0.0244.02 ▼14.17
Posts /wp-admin/edit.php3.37 ▲0.0248.59 ▲2.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.27 ▲3.38
Media Library /wp-admin/upload.php3.25 ▲0.0233.68 ▼0.12
Accordion /wp-admin/edit.php?post_type=accordian3.2933.22
Add New /wp-admin/post-new.php?post_type=accordian3.3744.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Simple Wp colorfull Accordion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲17214.07 ▼0.305.50 ▲3.8343.08 ▲2.89
Dashboard /wp-admin2,233 ▲484.89 ▼0.99105.13 ▲2.0141.46 ▲0.96
Posts /wp-admin/edit.php2,113 ▲212.00 ▼0.0239.36 ▲0.7534.31 ▲1.05
Add New Post /wp-admin/post-new.php1,556 ▲4223.25 ▲5.64596.01 ▼89.8661.84 ▲1.62
Media Library /wp-admin/upload.php1,415 ▲334.20 ▲0.0295.36 ▼1.9944.41 ▼1.04
Accordion /wp-admin/edit.php?post_type=accordian1,0771.9631.1729.93
Add New /wp-admin/post-new.php?post_type=accordian2,1767.56169.4364.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at 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/simple-wp-colorfull-accordion/Simple-Wp-colorfull-Accordion.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === simple-wp-colorfull-accordion === )
The official readme.txt might help

simple-wp-colorfull-accordion/Simple-Wp-colorfull-Accordion.php 92% from 13 tests

The main PHP file in "Simple Wp colorfull Accordion" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-wp-colorfull-accordion.php" instead of "Simple-Wp-colorfull-Accordion.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin66 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP125750
CSS12511
JavaScript1105

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png0.27KB0.14KB▼ 47.84%
css/images/ui-bg_flat_10_000000_40x100.png0.20KB0.08KB▼ 57.56%
css/images/ui-icons_228ef1_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%