84% optifile-online

Code Review | Optifile Online

WordPress plugin Optifile Online scored84%from 54 tests.

About plugin

  • Plugin page: optifile-online
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2019
  • Latest release: Jan 25, 2023
  • Number of updates: 28
  • Update frequency: every 46.4 days
  • Top authors: optifile (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /696 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼13.32ms] Passed 4 tests

A check of server-side resources used by Optifile Online
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▼0.0029.32 ▼16.29
Dashboard /wp-admin3.42 ▲0.0352.32 ▼18.92
Posts /wp-admin/edit.php3.53 ▲0.1347.95 ▼5.22
Add New Post /wp-admin/post-new.php6.00 ▲0.0690.43 ▼12.86
Media Library /wp-admin/upload.php3.34 ▲0.0737.30 ▼0.91

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Optifile Online
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲11713.49 ▼0.448.32 ▲6.1742.63 ▼2.95
Dashboard /wp-admin2,208 ▲375.50 ▼0.0489.21 ▼10.3640.52 ▼5.91
Posts /wp-admin/edit.php2,116 ▲162.00 ▼0.0234.99 ▼1.2939.16 ▲0.58
Add New Post /wp-admin/post-new.php1,539 ▲1323.10 ▼0.03680.01 ▼37.1353.44 ▼9.69
Media Library /wp-admin/upload.php1,416 ▲164.24 ▲0.01100.15 ▼5.0347.16 ▲1.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/optifile-online/optifile-online.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: optifile

optifile-online/optifile-online.php 92% from 13 tests

This is the main PHP file of "Optifile Online" version 1.0.8, 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:
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Success! There were no dangerous files found in this plugin189 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25746189

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected