83% cocoonnoticeareascheduler

Code Review | CocoonNoticeAreaScheduler

WordPress plugin CocoonNoticeAreaScheduler scored83%from 54 tests.

About plugin

  • Plugin page: cocoonnoticeareas...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: May 22, 2020
  • Latest release: Dec 10, 2020
  • Number of updates: 14
  • Update frequency: every 14.5 days
  • Top authors: macha795 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /836 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.94ms] Passed 4 tests

Server-side resources used by CocoonNoticeAreaScheduler
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.83 ▼7.19
Dashboard /wp-admin3.35 ▲0.0448.42 ▼8.53
Posts /wp-admin/edit.php3.40 ▲0.0450.76 ▲0.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.20 ▼20.28
Media Library /wp-admin/upload.php3.27 ▲0.0437.10 ▲1.20
通知エリア管理 /wp-admin/edit.php?post_type=mch795_cnaspt3.3238.94
Add New /wp-admin/post-new.php?post_type=mch795_cnaspt3.3646.46

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for CocoonNoticeAreaScheduler
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.28 ▲0.091.71 ▼0.3039.99 ▼2.08
Dashboard /wp-admin2,221 ▲415.65 ▲0.0688.52 ▼6.4151.30 ▲10.53
Posts /wp-admin/edit.php2,129 ▲292.04 ▲0.0339.79 ▲3.4644.11 ▲7.49
Add New Post /wp-admin/post-new.php1,565 ▲1523.33 ▲0.28594.22 ▼26.2461.45 ▲12.88
Media Library /wp-admin/upload.php1,432 ▲324.20 ▼0.0397.40 ▼8.2652.36 ▲6.84
通知エリア管理 /wp-admin/edit.php?post_type=mch795_cnaspt1,2161.9834.7366.79
Add New /wp-admin/post-new.php?post_type=mch795_cnaspt1,9913.3777.1676.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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
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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/cocoonnoticeareascheduler/ui/input-form-main.php:3

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 Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: japanese, cocoon, noticearea

cocoonnoticeareascheduler/mch795-cocoon-notice-area-scheduler.php 77% from 13 tests

This is the main PHP file of "CocoonNoticeAreaScheduler" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cocoonnoticeareascheduler.php" instead of "mch795-cocoon-notice-area-scheduler.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)

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
No dangerous file extensions were detected870 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4254144836
CSS10117
LESS110017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity104.00
▷ Minimum class complexity104.00
▷ Maximum class complexity104.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods49
▷ Static methods24.08%
▷ Public methods3571.43%
▷ Protected methods00.00%
▷ Private methods1428.57%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants27
▷ Global constants27.41%
▷ Class constants2592.59%
▷ Public constants25100.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 were not PNG files found in your plugin