84% chicmi-fashion-calendar

Code Review | Chicmi Fashion Calendar

WordPress plugin Chicmi Fashion Calendar scored84%from 54 tests.

About plugin

  • Plugin page: chicmi-fashion-ca...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.5
  • WordPress version: 6.3.1
  • First release: Jan 12, 2016
  • Latest release: Aug 11, 2016
  • Number of updates: 6
  • Update frequency: every 35.7 days
  • Top authors: chicmi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,015 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Chicmi Fashion Calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.17 ▲2.75
Dashboard /wp-admin3.31 ▼0.0347.34 ▼22.17
Posts /wp-admin/edit.php3.37 ▲0.0153.35 ▲2.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.66 ▼13.38
Media Library /wp-admin/upload.php3.24 ▲0.0135.20 ▼2.19

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Chicmi Fashion Calendar: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.28 ▼1.044.74 ▲2.9343.51 ▲0.72
Dashboard /wp-admin2,221 ▲184.90 ▼0.96106.37 ▼7.3339.38 ▼2.63
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0440.24 ▲3.2436.76 ▲2.95
Add New Post /wp-admin/post-new.php1,545 ▲13623.28 ▲5.34632.28 ▼191.6450.42 ▼20.24
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.0598.90 ▼60.2345.61 ▼14.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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
Almost there! Just fix the following items
  • 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/chicmi-fashion-calendar/chicmicalendar.php:82

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: sale, calendar, diary, new york, sample sale...

chicmi-fashion-calendar/chicmicalendar.php 92% from 13 tests

The main file in "Chicmi Fashion Calendar" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("chicmi-fashion-calendar.php" instead of "chicmicalendar.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
There were no executable files found in this plugin64 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2141064

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin