84% wp-cycle-text-announcement

Code Review | Wp cycle text announcement

WordPress plugin Wp cycle text announcement scored84%from 54 tests.

About plugin

  • Plugin page: wp-cycle-text-ann...
  • Plugin version: 8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2012
  • Latest release: Dec 1, 2022
  • Number of updates: 40
  • Update frequency: every 97.2 days
  • Top authors: gopi_plus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /18,970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Wp cycle text announcement
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.14 ▼19.56
Dashboard /wp-admin3.35 ▲0.0143.58 ▼11.02
Posts /wp-admin/edit.php3.40 ▲0.0445.90 ▲0.29
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.77 ▼2.46
Media Library /wp-admin/upload.php3.27 ▲0.0431.53 ▼0.11
Wp cycle text /wp-admin/options-general.php?page=wp-cycle-text-announcement3.2831.24

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: 2 new tables, 7 new options
New tables
wp_cycletext_content
wp_cycletext_settings
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
wpcytxt_title

Browser metrics Passed 4 tests

Checking browser requirements for Wp cycle text announcement
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲11613.56 ▼0.827.64 ▲4.7938.24 ▼21.04
Dashboard /wp-admin2,213 ▲615.88 ▲0.1795.92 ▼9.9337.29 ▼2.60
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0235.31 ▼2.4535.46 ▲3.22
Add New Post /wp-admin/post-new.php1,536 ▲1723.04 ▼0.03577.20 ▼13.7651.28 ▲3.21
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0994.24 ▼0.3041.06 ▼1.39
Wp cycle text /wp-admin/options-general.php?page=wp-cycle-text-announcement1,0402.0622.8327.11

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-cycle-text-announcement/pages/cycle-setting-edit.php
    • > /wp-content/plugins/wp-cycle-text-announcement/pages/cycle-setting-show.php
    • > /wp-content/plugins/wp-cycle-text-announcement/pages/content-show.php
    • > /wp-content/plugins/wp-cycle-text-announcement/wp-cycle-text-announcement.php
    • > /wp-content/plugins/wp-cycle-text-announcement/pages/content-edit.php
    • > /wp-content/plugins/wp-cycle-text-announcement/pages/content-add.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
5 plugin tags: cycle, wordpress, text, announcement, plugin

wp-cycle-text-announcement/wp-cycle-text-announcement.php 92% from 13 tests

The primary PHP file in "Wp cycle text announcement" version 8.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

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
Success! There were no dangerous files found in this plugin2,723 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21181231,182
PHP79945931
PO File4254354555
CSS1172055

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected