93% cision-modules

Code Review | Cision Modules

WordPress plugin Cision Modules scored 93% from 53 tests.

About plugin

  • Plugin page: cision-modules
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.6
  • WordPress version: 5.8.1
  • First release: Jan 30, 2021
  • Latest release: Feb 13, 2021
  • Number of updates: 16
  • Update frequency: every 0.9 days
  • Top authors: cyclonecode (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 147 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▼263.28ms] 75% from 4 tests

A check of server-side resources used by Cision Modules
The following require your attention
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,089.06ms on /wp-admin/tools.php?page=cision-modules)
PageMemory (MB)CPU Time (ms)
Home /3.01 ▲0.1728.70 ▼7.74
Dashboard /wp-admin3.30 ▲0.2458.00 ▲18.21
Posts /wp-admin/edit.php3.34 ▲0.2442.47 ▲1.25
Add New Post /wp-admin/post-new.php5.60 ▲0.1790.64 ▼1,039.80
Media Library /wp-admin/upload.php3.18 ▲0.1732.48 ▼6.81
Cision modules /wp-admin/tools.php?page=cision-modules3.191,089.06

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Cision Modules
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲9615.95 ▲0.497.88 ▼1.3249.32 ▼2.21
Dashboard /wp-admin2,932 ▲795.94 ▲0.11150.61 ▲7.36119.52 ▲8.29
Posts /wp-admin/edit.php2,711 ▲52.68 ▲0.0073.01 ▲4.9799.81 ▲10.58
Add New Post /wp-admin/post-new.php1,860 ▲719.28 ▲0.15369.57 ▼13.30110.81 ▼2.68
Media Library /wp-admin/upload.php1,780 ▲55.04 ▲0.01160.27 ▼10.81114.86 ▼5.75
Cision modules /wp-admin/tools.php?page=cision-modules1,2802.0961.5960.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CisionModules\\add_action() in wp-content/plugins/cision-modules/bootstrap.php:26
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/cision-modules/src/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'CisionModules\\Plugin\\Singleton' not found in wp-content/plugins/cision-modules/src/Plugin.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: modules, ticker, cision

cision-modules/bootstrap.php 85% from 13 tests

"Cision Modules" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cision-modules.php" instead of "bootstrap.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,566 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.43
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
▷ Static methods1722.67%
▷ Public methods6890.67%
▷ Protected methods45.33%
▷ Private methods34.00%
▷ Named functions133.33%
▷ Anonymous functions266.67%
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants360.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected