74% ultimate-info

Code Review | Ultimate Info

WordPress plugin Ultimate Info scored74%from 54 tests.

About plugin

  • Plugin page: ultimate-info
  • Plugin version: 2...
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 6, 2019
  • Latest release: Aug 1, 2020
  • Number of updates: 6
  • Update frequency: every 90.3 days
  • Top authors: khl32 (83.33%)Otto42 (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /783 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼37.10ms] Passed 4 tests

Analyzing server-side resources used by Ultimate Info
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.70 ▼5.22
Dashboard /wp-admin3.00 ▼0.3124.36 ▼34.36
Posts /wp-admin/edit.php3.00 ▼0.3625.58 ▼23.13
Add New Post /wp-admin/post-new.php3.00 ▼2.8922.74 ▼77.81
Media Library /wp-admin/upload.php3.00 ▼0.2322.90 ▼13.09

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Info
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7314.74 ▲0.431.88 ▲0.0340.15 ▼9.08
Dashboard /wp-admin2,222 ▲344.91 ▲0.03101.99 ▼15.7158.12 ▲9.26
Posts /wp-admin/edit.php2,108 ▲162.03 ▼0.0138.79 ▲1.8332.47 ▼4.44
Add New Post /wp-admin/post-new.php1,536 ▲823.15 ▲4.88630.46 ▼1.9052.92 ▼17.12
Media Library /wp-admin/upload.php1,407 ▲194.32 ▲0.13100.92 ▼2.5074.02 ▲31.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/ultimate-info/inc/wordpress.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Ultimate_Info\\plugin_dir_path() in wp-content/plugins/ultimate-info/class-ultimate-info.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/ultimate-info/inc/server.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-info/ultimate-info.php:18

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: Version format is invalid
The official readme.txt might help

ultimate-info/ultimate-info.php 92% from 13 tests

This is the main PHP file of "Ultimate Info" version 2..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "2...")

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
There were no executable files found in this plugin891 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1800320
PHP4811316
CSS154211
JavaScript10044

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
resource/misc/icon.png4.37KB1.47KB▼ 66.42%