77% simplified

Code Review | Simplified Plugin

WordPress plugin Simplified Plugin scored77%from 54 tests.

About plugin

  • Plugin page: simplified
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2022
  • Latest release: May 15, 2023
  • Number of updates: 11
  • Update frequency: every 17.7 days
  • Top authors: kodeshpa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,222 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▼6.41ms] Passed 4 tests

Analyzing server-side resources used by Simplified Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3637.80 ▲0.08
Dashboard /wp-admin3.68 ▲0.3447.05 ▼12.51
Posts /wp-admin/edit.php3.74 ▲0.3849.93 ▲6.07
Add New Post /wp-admin/post-new.php6.20 ▲0.3283.40 ▼15.65
Media Library /wp-admin/upload.php3.61 ▲0.3837.75 ▲2.44
Simplified /wp-admin/options-general.php?page=simplifiedplugin3.5537.05

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 215 new files
Database: no new tables, 7 new options
New WordPress options
simplifiedplugin-version
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Simplified Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.371.78 ▲0.1740.74 ▲0.56
Dashboard /wp-admin2,196 ▲245.50 ▼0.1884.78 ▼15.4737.92 ▼1.91
Posts /wp-admin/edit.php2,107 ▲101.99 ▲0.0337.43 ▲2.0033.10 ▼0.34
Add New Post /wp-admin/post-new.php1,529 ▼323.14 ▲0.29668.49 ▲44.7152.68 ▲1.97
Media Library /wp-admin/upload.php1,404 ▲74.24 ▲0.08104.39 ▼3.9347.74 ▲1.91
Simplified /wp-admin/options-general.php?page=simplifiedplugin8792.0024.7026.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • simplifiedplugin-version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simplified/vendor/micropackage/requirements/tests/bootstrap.php
    • > /wp-content/plugins/simplified/simplifiedplugin.php
  • 133× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Simplified_Plugin\\Engine\\Base' not found in wp-content/plugins/simplified/ajax/Ajax.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/simplified/vendor/micropackage/requirements/tests/Abstracts/test-checker.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (`/assets/screen-1.png`)
The official readme.txt is a good inspiration

simplified/simplifiedplugin.php 77% from 13 tests

This is the main PHP file of "Simplified Plugin" version 1.0.3, 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: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simplified.php" instead of "simplifiedplugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin6,049 lines of code in 185 files:
LanguageFilesBlank linesComment linesLines of code
PHP1611,1572,0524,782
JSON800727
Markdown5910191
YAML3313123
Bourne Shell12111120
XML24356
PO File191146
CSS2002
JavaScript2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.51
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces17
Interfaces1
Traits0
Classes141
▷ Abstract classes21.42%
▷ Concrete classes13998.58%
▷ Final classes00.00%
Methods304
▷ Static methods3110.20%
▷ Public methods24279.61%
▷ Protected methods3511.51%
▷ Private methods278.88%
Functions27
▷ Named functions829.63%
▷ Anonymous functions1970.37%
Constants23
▷ Global constants730.43%
▷ Class constants1669.57%
▷ Public constants1593.75%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.72MB with 0.46MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screen-1.png32.92KB13.17KB▼ 60.01%
assets/icon-256x256.png2.18KB0.88KB▼ 59.95%
assets/banner-1544x500.png532.21KB164.71KB▼ 69.05%
assets/banner-772x250.png171.79KB54.92KB▼ 68.03%