10% zia3-rotating-words

Code Review | Zia3 Rotating Words

WordPress plugin Zia3 Rotating Words scored10%from 54 tests.

About plugin

  • Plugin page: zia3-rotating-words
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.0
  • WordPress version: 6.3.1
  • First release: May 13, 2015
  • Latest release: Sep 29, 2015
  • Number of updates: 4
  • Update frequency: every 34.8 days
  • Top authors: zia3wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,247 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method zia3_rw::flush() should not be called statically

Server metrics [RAM: ▼0.65MB] [CPU: ▼124.96ms] Passed 4 tests

An overview of server-side resources used by Zia3 Rotating Words
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.55 ▼3.72
Dashboard /wp-admin3.35 ▼0.0753.32 ▼442.58
Posts /wp-admin/edit.php3.40 ▲0.0550.21 ▼0.55
Add New Post /wp-admin/post-new.php3.25 ▼2.6439.24 ▼52.98
Media Library /wp-admin/upload.php3.28 ▲0.0540.73 ▲9.01
Add Rotating Words /wp-admin/post-new.php?post_type=zia3_rw3.1837.32
All Rotating Words /wp-admin/edit.php?post_type=zia3_rw3.3238.51

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Zia3 Rotating Words
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲6114.28 ▲0.003.17 ▲1.0643.09 ▼7.71
Dashboard /wp-admin2,222 ▲455.58 ▼0.0986.74 ▼2.4738.71 ▲1.08
Posts /wp-admin/edit.php2,127 ▲271.94 ▼0.0538.48 ▲0.6534.19 ▼0.97
Add New Post /wp-admin/post-new.php1,549 ▲1823.71 ▲0.80678.37 ▲25.4050.39 ▼1.79
Media Library /wp-admin/upload.php1,430 ▲304.16 ▼0.1197.10 ▼12.8149.44 ▲3.01
Add Rotating Words /wp-admin/post-new.php?post_type=zia3_rw3,0462.6560.7079.06
All Rotating Words /wp-admin/edit.php?post_type=zia3_rw1,1071.9931.1432.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method zia3_rw::flush() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_sent_1
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_top_1
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_left_1
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_color_1
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_sent_2
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_top_2
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_left_2
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_color_2
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_sent_3
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_top_3
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_left_3
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_color_3
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_sent_4
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_top_4
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_left_4
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_text_color_4
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_background_image
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_save_metabox.php+135
    Undefined index: custom_repeatable
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_shortcode_metabox.php+24
    Undefined index: font_family
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_shortcode_metabox.php+25
    Undefined index: font_size
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_shortcode_metabox.php+26
    Undefined index: pos_top
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_shortcode_metabox.php+27
    Undefined index: pos_left
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_shortcode_metabox.php+28
    Undefined index: rw_height
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_shortcode_metabox.php+29
    Undefined index: rw_width
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_shortcode_metabox.php+30
    Undefined index: rwords_pos
    • > GET request to /wp-admin/post-new.php?post_type=zia3_rw
    • > Notice in wp-content/plugins/zia3-rotating-words/methods/metaboxes/zia3_rw_shortcode_metabox.php+36
    Undefined variable: exampleGenShortcode

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/zia3-rotating-words/css/zia3-rw-dynamic-style.css.php

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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

zia3-rotating-words/zia3_rw.php 85% from 13 tests

The main PHP script in "Zia3 Rotating Words" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("zia3-rotating-words.php" instead of "zia3_rw.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,551 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP11122781,330
JavaScript3123116
CSS110105

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/zia3_logo.png1.86KB1.49KB▼ 19.73%
images/image.png4.22KB0.78KB▼ 81.40%
images/pattern.png0.12KB0.10KB▼ 14.41%