84% ostrichcize

Code Review | Ostrichcize

WordPress plugin Ostrichcize scored84%from 54 tests.

About plugin

  • Plugin page: ostrichcize
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3+
  • WordPress version: 6.3.1
  • First release: Nov 24, 2012
  • Latest release: Nov 24, 2012
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: tollmanz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.33ms] Passed 4 tests

Analyzing server-side resources used by Ostrichcize
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.45 ▲2.39
Dashboard /wp-admin3.32 ▼0.0345.64 ▼18.17
Posts /wp-admin/edit.php3.37 ▲0.0149.04 ▲3.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.72 ▼15.01
Media Library /wp-admin/upload.php3.24 ▲0.0135.35 ▲1.47

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

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

Browser metrics Passed 4 tests

Ostrichcize: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.261.55 ▼0.1638.84 ▼1.44
Dashboard /wp-admin2,189 ▲95.50 ▼0.1380.90 ▼4.3839.34 ▼2.45
Posts /wp-admin/edit.php2,100 ▼02.14 ▲0.1638.93 ▲4.6935.42 ▲0.62
Add New Post /wp-admin/post-new.php1,531 ▲523.24 ▲0.26631.68 ▼13.4660.48 ▲8.73
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.03103.87 ▲5.2046.42 ▲1.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ostrichcize/ostrichcize.php:170

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tested up to: Version format is invalid
The official readme.txt is a good inspiration

ostrichcize/ostrichcize.php Passed 13 tests

The entry point to "Ostrichcize" version 0.1 is a PHP file that has certain tags in its header comment area
57 characters long description:
Hides PHP errors reported by specified plugins or themes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12310049

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods240.00%
▷ Protected methods00.00%
▷ Private methods360.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected