84% imlo

Code Review | Imlo

WordPress plugin Imlo scored84%from 54 tests.

About plugin

  • Plugin page: imlo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Feb 10, 2017
  • Latest release: Feb 10, 2017
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: dilpora (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.27ms] Passed 4 tests

Analyzing server-side resources used by Imlo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.33 ▼4.36
Dashboard /wp-admin3.31 ▲0.0147.18 ▲2.94
Posts /wp-admin/edit.php3.36 ▲0.0148.16 ▲0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.72 ▼8.41
Media Library /wp-admin/upload.php3.23 ▲0.0139.57 ▲3.88

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Imlo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.201.79 ▲0.1141.95 ▼14.12
Dashboard /wp-admin2,209 ▲185.87 ▲0.79105.81 ▲4.9438.57 ▼7.05
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0835.41 ▼1.5730.12 ▼1.69
Add New Post /wp-admin/post-new.php1,514 ▼1917.85 ▼5.29665.53 ▲0.6758.14 ▼7.81
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0697.07 ▲0.8742.96 ▼0.62

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/imlo/imlo.php:15

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

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Donate link: Invalid url: "N/A"
You can take inspiration from this readme.txt

imlo/imlo.php Passed 13 tests

"Imlo" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
TinyMCE tahrir oynasi uchun imloni tekshirish plagini

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin170 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1156143
PHP115927

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png0.68KB0.66KB▼ 3.00%