84% chiramise

Code Review | Chiramise

WordPress plugin Chiramise scored84%from 54 tests.

About plugin

  • Plugin page: chiramise
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2016
  • Latest release: May 30, 2019
  • Number of updates: 12
  • Update frequency: every 77.7 days
  • Top authors: Takahashi_Fumiki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,013 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
Install script ran successfully

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

Server-side resources used by Chiramise
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.85 ▲5.74
Dashboard /wp-admin3.32 ▼0.0345.68 ▼14.95
Posts /wp-admin/edit.php3.37 ▲0.0143.44 ▼2.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.04 ▼21.20
Media Library /wp-admin/upload.php3.24 ▲0.0131.84 ▼1.84

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Chiramise
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.111.70 ▲0.0543.67 ▲6.28
Dashboard /wp-admin2,203 ▲155.78 ▼0.0796.87 ▼6.4138.97 ▼5.03
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0633.29 ▼2.9933.87 ▲0.12
Add New Post /wp-admin/post-new.php1,533 ▲1423.22 ▲0.21620.18 ▼39.6847.73 ▼2.18
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0397.60 ▲1.6241.00 ▼2.45

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
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/chiramise/chiramise.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chiramise/hooks/api.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chiramise/hooks/assets.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chiramise/hooks/parser.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chiramise/hooks/setting.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
1 plugin tags: membership

chiramise/chiramise.php Passed 13 tests

The primary PHP file in "Chiramise" version 1.1.2 is used by WordPress to initiate all plugin functionality
60 characters long description:
A WordPress plugin which makes your contents "members only".

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected9,412 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JSON2008,943
PHP830204266
Bourne Shell22411129
JavaScript3171974

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions23
▷ Named functions1356.52%
▷ Anonymous functions1043.48%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin