10% onelinerz-free

Code Review | Onelinerz-free Plugin

WordPress plugin Onelinerz-free Plugin scored10%from 54 tests.

About plugin

  • Plugin page: onelinerz-free
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Dec 17, 2014
  • Number of updates: 6
  • Update frequency: every 7.2 days
  • Top authors: c0ri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /703 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Error in wp-admin/includes/options.php+17
    Cannot redeclare options_discussion_add_js() (previously declared in wp-admin/includes/options.php:17)

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

Analyzing server-side resources used by Onelinerz-free Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.70 ▼3.04
Dashboard /wp-admin3.31 ▼0.0448.32 ▼23.00
Posts /wp-admin/edit.php3.36 ▲0.0049.07 ▼1.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.44 ▼13.33
Media Library /wp-admin/upload.php3.23 ▲0.0036.09 ▼2.46

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Onelinerz-free Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.58 ▼0.071.62 ▼0.0345.56 ▲2.38
Dashboard /wp-admin2,198 ▲185.48 ▼0.1691.05 ▼8.7853.33 ▲11.16
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0839.35 ▲3.1135.57 ▼2.57
Add New Post /wp-admin/post-new.php1,535 ▲918.12 ▼4.70602.85 ▼69.0063.86 ▼1.24
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.01100.38 ▼8.1244.13 ▼1.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/onelinerz-free/includes/info.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/onelinerz-free/includes/options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/onelinerz-free/includes/options.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 22 tag instead of maximum 10
The official readme.txt might help

onelinerz-free/onelinerz.php 85% from 13 tests

The entry point to "Onelinerz-free Plugin" version 1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 454 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("onelinerz-free.php" instead of "onelinerz.php")

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
Good job! No executable or dangerous file extensions detected725 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34062725

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions13
▷ Named functions13100.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
There are no PNG files in this plugin