68% outgrow

Code Review | Outgrow

WordPress plugin Outgrow scored68%from 54 tests.

About plugin

  • Plugin page: outgrow
  • Plugin version: 2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2018
  • Latest release: Sep 19, 2023
  • Number of updates: 93
  • Update frequency: every 19.0 days
  • Top authors: shagun2929 (82.8%)outgrow (18.28%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /1,413 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.78MB] [CPU: ▼53.59ms] Passed 4 tests

Server-side resources used by Outgrow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.254.86 ▼43.95
Dashboard /wp-admin2.23 ▼1.0710.72 ▼41.40
Posts /wp-admin/edit.php2.23 ▼1.138.19 ▼38.10
Add New Post /wp-admin/post-new.php2.23 ▼3.666.31 ▼90.90
Media Library /wp-admin/upload.php2.23 ▼1.006.30 ▼25.31

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 2 new tables, 6 new options
New tables
wp_outgrow_calci_table
wp_outgrow_calci_api_table
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Outgrow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,629 ▲89415.75 ▲1.0915.92 ▲13.9839.86 ▼6.20
Dashboard /wp-admin2,420 ▲2325.94 ▲1.05105.27 ▼14.5038.67 ▼8.56
Posts /wp-admin/edit.php2,312 ▲2232.85 ▲0.8540.64 ▲5.1637.70 ▲3.45
Add New Post /wp-admin/post-new.php1,397 ▼12617.59 ▼5.55594.50 ▼94.3130.84 ▼22.91
Media Library /wp-admin/upload.php1,603 ▲2125.11 ▲0.90100.26 ▲0.5338.02 ▼7.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my_plugin_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/outgrow/view.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/outgrow/callingDb.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/outgrow/outgrow-api.php:22
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/outgrow/cookies.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #5, #6 in outgrow/assets to your readme.txt
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can take inspiration from this readme.txt

outgrow/outgrow-api.php 92% from 13 tests

"Outgrow" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("outgrow.php" instead of "outgrow-api.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected19,819 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript422625012,103
CSS72331724,415
SVG1132,624
PHP54991565
HTML1294112

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.24MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/select.png2.82KB0.18KB▼ 93.46%
images/icon-2.png3.15KB0.37KB▼ 88.34%
images/icon6.png1.07KB0.21KB▼ 80.35%
images/logo.png3.40KB0.74KB▼ 78.25%
images/icon-4.png3.15KB0.35KB▼ 88.93%