83% orbisius-theme-fixer

Code Review | Orbisius Theme Fixer

WordPress plugin Orbisius Theme Fixer scored83%from 54 tests.

About plugin

  • Plugin page: orbisius-theme-fixer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2013
  • Latest release: Sep 20, 2013
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,051 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.74ms] Passed 4 tests

An overview of server-side resources used by Orbisius Theme Fixer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.96 ▼4.05
Dashboard /wp-admin3.33 ▲0.0246.30 ▼3.82
Posts /wp-admin/edit.php3.38 ▲0.0250.13 ▲2.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.42 ▲2.19
Media Library /wp-admin/upload.php3.25 ▲0.0238.11 ▲4.22

Server storage [IO: ▲0.14MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Orbisius Theme Fixer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.18 ▼1.501.47 ▼0.7636.68 ▼13.69
Dashboard /wp-admin2,214 ▲265.87 ▲0.99108.54 ▼7.1542.69 ▼2.00
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0240.50 ▲4.2535.95 ▼2.18
Add New Post /wp-admin/post-new.php1,545 ▲1223.31 ▼0.01593.01 ▼75.9956.29 ▲4.60
Media Library /wp-admin/upload.php1,387 ▼44.22 ▼0.0397.55 ▲1.4642.47 ▼0.10

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/orbisius-theme-fixer/orbisius-theme-fixer.php:14

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Plugin page after installation)
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt is a good inspiration

orbisius-theme-fixer/orbisius-theme-fixer.php 92% from 13 tests

The entry point to "Orbisius Theme Fixer" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 343 characters long)

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
Everything looks great! No dangerous files found in this plugin42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1133742

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png133.04KB44.34KB▼ 66.67%