84% includer

Code Review | Includer

WordPress plugin Includer scored84%from 54 tests.

About plugin

  • Plugin page: includer
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 16, 2016
  • Latest release: Dec 20, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: screamer49 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /972 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 gracefully, with no errors

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

An overview of server-side resources used by Includer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.99 ▲1.14
Dashboard /wp-admin3.34 ▲0.0453.26 ▲0.43
Posts /wp-admin/edit.php3.39 ▲0.0452.94 ▼3.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.68 ▼14.58
Media Library /wp-admin/upload.php3.27 ▲0.0440.56 ▲3.41
Includer /wp-admin/options-general.php?page=includer3.2336.58

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Includer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.08 ▼0.291.70 ▲0.0743.18 ▲5.01
Dashboard /wp-admin2,196 ▲165.64 ▼0.0095.49 ▼1.2641.99 ▼1.59
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0734.82 ▼5.8835.76 ▼0.25
Add New Post /wp-admin/post-new.php1,529 ▲323.85 ▲0.74701.30 ▲11.8356.95 ▲9.54
Media Library /wp-admin/upload.php1,404 ▲14.13 ▼0.13108.96 ▲12.4145.86 ▲0.43
Includer /wp-admin/options-general.php?page=includer8582.0026.1331.58

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/includer/ga.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === includer === )
You can look at the official readme.txt

includer/includer.php Passed 13 tests

This is the main PHP file of "Includer" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
114 characters long description:
The easiest way to add Google Analytics, Clicky Analytics, Clickcease and CallRail scripts to your Wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin172 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP52919172

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.14
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%
Functions11
▷ Named functions11100.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 images were found in this plugin