84% cronycle-content

Code Review | Cronycle Content

WordPress plugin Cronycle Content scored84%from 54 tests.

About plugin

  • Plugin page: cronycle-content
  • Plugin version: 5.2.2
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.3
  • WordPress version: 6.3.1
  • First release: Nov 2, 2018
  • Latest release: Oct 21, 2022
  • Number of updates: 92
  • Update frequency: every 15.8 days
  • Top authors: cronycleuser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,393 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.58MB] [CPU: ▼4.51ms] Passed 4 tests

Analyzing server-side resources used by Cronycle Content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.5941.02 ▼0.05
Dashboard /wp-admin3.91 ▲0.6148.54 ▼3.99
Posts /wp-admin/edit.php3.96 ▲0.6151.42 ▼3.04
Add New Post /wp-admin/post-new.php6.45 ▲0.5686.50 ▼10.97
Media Library /wp-admin/upload.php3.77 ▲0.5440.17 ▲3.60
Cronycle Content /wp-admin/options-general.php?page=cronycle-content/admin/class-cronycle-content-admin.php3.7537.46

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Cronycle Content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲13713.48 ▼0.4812.99 ▲11.4142.70 ▼0.19
Dashboard /wp-admin2,203 ▲235.65 ▲0.0392.17 ▲3.2440.54 ▼0.47
Posts /wp-admin/edit.php2,117 ▲172.00 ▼0.0239.99 ▲0.7340.98 ▲0.99
Add New Post /wp-admin/post-new.php1,542 ▲1623.75 ▲0.20665.71 ▲1.2353.49 ▼4.18
Media Library /wp-admin/upload.php1,414 ▲144.20 ▲0.0395.83 ▼10.6243.86 ▲0.25
Cronycle Content /wp-admin/options-general.php?page=cronycle-content/admin/class-cronycle-content-admin.php8492.0126.6450.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/cronycle-content/admin/partials/template-settings-page.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: content aggregator, market intelligence, content research, content collaboration, content curation...

cronycle-content/cronycle-content.php Passed 13 tests

The main PHP file in "Cronycle Content" ver. 5.2.2 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Create news feeds with content you curate in Cronycle.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin6,837 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP224581,7512,812
JavaScript99362052,652
CSS915337865
Sass2275262
LESS1115152
HTML30072
SVG21014
Ruby1208

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.45
Average class complexity32.17
▷ Minimum class complexity1.00
▷ Maximum class complexity202.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods128
▷ Static methods129.38%
▷ Public methods9271.88%
▷ Protected methods00.00%
▷ Private methods3628.12%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants12
▷ Global constants216.67%
▷ Class constants1083.33%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.20MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/2x/logo-big.png3.02KB1.19KB▼ 60.71%
images/logo-big.png1.46KB0.65KB▼ 55.15%
images/2x/logo-full.png11.82KB4.95KB▼ 58.13%
images/logo-full.png5.56KB2.91KB▼ 47.74%
images/icon-editor.png1.12KB0.79KB▼ 28.98%