84% ultimate-photonizer

Code Review | Ultimate Photonizer

WordPress plugin Ultimate Photonizer scored 84% from 54 tests.

About plugin

  • Plugin page: ultimate-photonizer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.6
  • WordPress version: 6.3.1
  • First release: Jan 20, 2016
  • Latest release: Aug 17, 2016
  • Number of updates: 8
  • Update frequency: every 27.5 days
  • Top authors: marcocanestrari (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 1,423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.81ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate Photonizer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.10 ▼4.46
Dashboard /wp-admin3.37 ▲0.0746.92 ▼5.29
Posts /wp-admin/edit.php3.41 ▲0.0545.11 ▼3.95
Add New Post /wp-admin/post-new.php6.06 ▲0.1877.57 ▼17.55
Media Library /wp-admin/upload.php3.31 ▲0.0835.54 ▼0.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Photonizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.67 ▲0.291.73 ▼0.0941.35 ▼1.28
Dashboard /wp-admin2,238 ▲475.83 ▼0.05100.65 ▼2.7681.82 ▲41.20
Posts /wp-admin/edit.php2,121 ▲322.00 ▼0.0136.01 ▼0.5331.86 ▲1.75
Add New Post /wp-admin/post-new.php1,696 ▲16322.48 ▼0.67696.51 ▲86.8154.99 ▲0.22
Media Library /wp-admin/upload.php1,411 ▲264.21 ▼0.08136.25 ▲29.6048.49 ▲2.11

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please 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/ultimate-photonizer/ultimate-photonizer.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can look at the official readme.txt

ultimate-photonizer/ultimate-photonizer.php Passed 13 tests

This is the main PHP file of "Ultimate Photonizer" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
30 characters long description:
Apply Photon to all the output

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
No dangerous file extensions were detected28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16728

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin