83% pio-express

Code Review | PIO - Express

WordPress plugin PIO - Express scored83%from 54 tests.

About plugin

  • Plugin page: pio-express
  • Plugin version: 2.0
  • PHP compatiblity: 7.0 or higher+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.3
  • WordPress version: 6.3.1
  • First release: Jul 6, 2020
  • Latest release: Nov 12, 2020
  • Number of updates: 9
  • Update frequency: every 14.7 days
  • Top authors: piodevelopers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /459 total downloads

Benchmarks

Plugin footprint 83% from 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.51ms] Passed 4 tests

Analyzing server-side resources used by PIO - Express
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1348.25 ▲3.73
Dashboard /wp-admin3.41 ▲0.1160.85 ▲7.79
Posts /wp-admin/edit.php3.53 ▲0.1755.91 ▲2.02
Add New Post /wp-admin/post-new.php6.00 ▲0.1196.71 ▼7.97
Media Library /wp-admin/upload.php3.34 ▲0.1140.95 ▲4.25

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for PIO - Express
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.28 ▼1.372.00 ▲0.2843.51 ▼3.21
Dashboard /wp-admin2,246 ▲585.12 ▲0.24102.23 ▼13.0183.44 ▲38.93
Posts /wp-admin/edit.php2,150 ▲612.30 ▲0.2938.67 ▲2.4536.58 ▼2.08
Add New Post /wp-admin/post-new.php1,717 ▲20322.42 ▲4.90773.87 ▲78.6938.16 ▼19.76
Media Library /wp-admin/upload.php1,506 ▲1184.37 ▼0.03102.25 ▲1.1485.02 ▲41.05

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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)
Good news, no errors were detected

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
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pio-express/includes/admin-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pio-express/includes/manage-login-page.php:173
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pio-express/includes/admin-bar.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pio-express/includes/manage-api.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pio-express/plugin.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
  • Screenshots: Please describe screenshot #6 in pio-express/assets to your readme.txt
The official readme.txt might help

pio-express/plugin.php 77% from 13 tests

The primary PHP file in "PIO - Express" version 2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 215 characters long)
  • Requires PHP: Required version number should only contain digits separated by dots (ex. "7.0" instead of "7.0 or higher")
  • Main file name: Name the main plugin file the same as the plugin slug ("pio-express.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin754 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP69548538
CSS1283154
JavaScript18353
SVG2009

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.69
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%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin