84% isidore-suggestions

Code Review | Isidore Suggestions

WordPress plugin Isidore Suggestions scored84%from 54 tests.

About plugin

  • Plugin page: isidore-suggestions
  • Plugin version: 4.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: May 7, 2015
  • Latest release: Sep 15, 2023
  • Number of updates: 55
  • Update frequency: every 55.5 days
  • Top authors: Huma-Num (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,039 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Isidore Suggestions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1149.58 ▲6.38
Dashboard /wp-admin3.41 ▲0.1050.34 ▼0.23
Posts /wp-admin/edit.php3.46 ▲0.1147.85 ▼3.68
Add New Post /wp-admin/post-new.php6.00 ▲0.1188.56 ▼14.55
Media Library /wp-admin/upload.php3.33 ▲0.1044.00 ▲6.33

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_isidore-suggestions
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Isidore Suggestions: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.111.85 ▼0.4744.08 ▼0.60
Dashboard /wp-admin2,195 ▲185.54 ▼0.1882.75 ▼36.8739.86 ▼16.57
Posts /wp-admin/edit.php2,097 ▼31.95 ▼0.0339.40 ▼3.3535.68 ▼1.37
Add New Post /wp-admin/post-new.php1,688 ▲16021.93 ▼1.28618.93 ▼6.6554.99 ▲11.06
Media Library /wp-admin/upload.php1,400 ▲34.17 ▲0.0095.12 ▼9.8344.29 ▼2.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_isidore-suggestions
    • widget_theysaidso_widget
    • 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)
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/isidore-suggestions/isidore-suggestions.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

isidore-suggestions/isidore-suggestions.php 92% from 13 tests

The principal PHP file in "Isidore Suggestions" v. 4.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)

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
There were no executable files found in this plugin1,222 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PO File5235235550
PHP278124431
JavaScript4126168
CSS24160
SVG10013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods440.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
TinyMCE/js/isidore-suggestions.png0.71KB0.64KB▼ 10.43%
images/logoisidore.png15.01KB4.96KB▼ 66.93%