10% zia3-os

Code Review | Zia3 Opening Sequence

WordPress plugin Zia3 Opening Sequence scored10%from 54 tests.

About plugin

  • Plugin page: zia3-os
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.0
  • WordPress version: 6.3.1
  • First release: May 8, 2015
  • Latest release: Sep 29, 2015
  • Number of updates: 6
  • Update frequency: every 24.0 days
  • Top authors: zia3wp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /880 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method zia3_os::flush() should not be called statically

Server metrics [RAM: ▼0.62MB] [CPU: ▼16.00ms] Passed 4 tests

A check of server-side resources used by Zia3 Opening Sequence
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.62 ▼1.82
Dashboard /wp-admin3.36 ▲0.0546.48 ▼7.11
Posts /wp-admin/edit.php3.41 ▲0.0546.33 ▼4.10
Add New Post /wp-admin/post-new.php3.23 ▼2.6537.13 ▼50.98
Media Library /wp-admin/upload.php3.28 ▲0.0542.87 ▲8.34
All Opening Sequences /wp-admin/edit.php?post_type=zia3_os3.3237.34
Add Opening Sequence /wp-admin/post-new.php?post_type=zia3_os3.1633.79

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Zia3 Opening Sequence
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.62 ▼0.013.02 ▲1.2842.29 ▼1.93
Dashboard /wp-admin2,222 ▲485.55 ▼0.0281.67 ▼2.8784.98 ▲45.59
Posts /wp-admin/edit.php2,124 ▲241.99 ▲0.0335.09 ▼0.2529.34 ▼8.43
Add New Post /wp-admin/post-new.php1,703 ▲17521.74 ▼1.56703.17 ▼2.4656.28 ▼10.71
Media Library /wp-admin/upload.php1,424 ▲244.23 ▲0.0698.09 ▼10.3972.50 ▲27.63
All Opening Sequences /wp-admin/edit.php?post_type=zia3_os1,1071.9030.9325.77
Add Opening Sequence /wp-admin/post-new.php?post_type=zia3_os1,6762.6154.2655.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method zia3_os::flush() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=zia3_os
    • > Notice in wp-content/plugins/zia3-os/methods/metaboxes/zia3_os_save_metabox.php+32
    Undefined index: custom_repeatable
    • > GET request to /wp-admin/post-new.php?post_type=zia3_os
    • > Notice in wp-content/plugins/zia3-os/methods/metaboxes/zia3_os_shortcode_metabox.php+24
    Undefined index: link_title
    • > GET request to /wp-admin/post-new.php?post_type=zia3_os
    • > Notice in wp-content/plugins/zia3-os/methods/metaboxes/zia3_os_shortcode_metabox.php+25
    Undefined index: link
    • > GET request to /wp-admin/post-new.php?post_type=zia3_os
    • > Notice in wp-content/plugins/zia3-os/methods/metaboxes/zia3_os_shortcode_metabox.php+26
    Undefined index: link_color
    • > GET request to /wp-admin/post-new.php?post_type=zia3_os
    • > Notice in wp-content/plugins/zia3-os/methods/metaboxes/zia3_os_shortcode_metabox.php+27
    Undefined index: slogan
    • > GET request to /wp-admin/post-new.php?post_type=zia3_os
    • > Notice in wp-content/plugins/zia3-os/methods/metaboxes/zia3_os_shortcode_metabox.php+28
    Undefined index: slogan_link
    • > GET request to /wp-admin/post-new.php?post_type=zia3_os
    • > Notice in wp-content/plugins/zia3-os/methods/metaboxes/zia3_os_shortcode_metabox.php+29
    Undefined index: slogan_link_color
    • > GET request to /wp-admin/post-new.php?post_type=zia3_os
    • > Notice in wp-content/plugins/zia3-os/methods/metaboxes/zia3_os_shortcode_metabox.php+30
    Undefined index: font_size
    • > GET request to /wp-admin/post-new.php?post_type=zia3_os
    • > Notice in wp-content/plugins/zia3-os/methods/metaboxes/zia3_os_shortcode_metabox.php+37
    Undefined variable: exampleGenShortcode

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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/zia3-os/css/zia3-os-dynamic-style.css.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Add a description for screenshot #3 in zia3-os/assets to your readme.txt
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

zia3-os/zia3_os.php 92% from 13 tests

Analyzing the main PHP file in "Zia3 Opening Sequence" version 1.1
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zia3-os.php" instead of "zia3_os.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,270 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP1114584966
JavaScript42320154
CSS210150

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
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/pattern.png0.12KB0.10KB▼ 14.41%
images/image.png4.22KB0.78KB▼ 81.40%