10% tsp-easy-dev

Code Review | LAPDI Easy Dev

WordPress plugin LAPDI Easy Dev scored10%from 54 tests.

About plugin

  • Plugin page: tsp-easy-dev
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2013
  • Latest release: Jul 19, 2021
  • Number of updates: 69
  • Update frequency: every 42.2 days
  • Top authors: sharrondenice (89.86%)thesoftwarepeople (11.59%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /17,699 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/tsp-easy-dev/TSP_Easy_Dev.autoload.php+26
    Constant TSP_EASY_DEV_PATH already defined

Server metrics [RAM: ▼1.88MB] [CPU: ▼52.76ms] Passed 4 tests

Analyzing server-side resources used by LAPDI Easy Dev
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.90 ▼38.87
Dashboard /wp-admin2.12 ▼1.185.56 ▼43.26
Posts /wp-admin/edit.php2.13 ▼1.235.60 ▼42.60
Add New Post /wp-admin/post-new.php2.13 ▼3.765.91 ▼86.30
Media Library /wp-admin/upload.php2.13 ▼1.106.52 ▼27.73
LAPDI Plugins /wp-admin/admin.php?page=tsp_plugins2.135.27

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

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

Browser metrics Passed 4 tests

Checking browser requirements for LAPDI Easy Dev
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.71 ▲0.131.90 ▼0.2044.15 ▼0.99
Dashboard /wp-admin2,206 ▲295.54 ▼0.0688.51 ▼11.7277.77 ▲34.11
Posts /wp-admin/edit.php2,129 ▲291.98 ▼0.0238.01 ▲1.2834.51 ▼1.50
Add New Post /wp-admin/post-new.php1,557 ▲1223.27 ▲0.24756.86 ▲93.9264.31 ▲7.93
Media Library /wp-admin/upload.php1,429 ▲294.22 ▼0.10105.60 ▲0.9747.51 ▲3.86
Easy Dev /wp-admin/tsp-easy-dev.php260.440.0915.79
LAPDI Plugins /wp-admin/admin.php?page=tsp_plugins9921.9937.0165.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/tsp-easy-dev/TSP_Easy_Dev.autoload.php+26
    Constant TSP_EASY_DEV_PATH already defined
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=tsp_plugins
    • > Notice in wp-content/plugins/tsp-easy-dev/TSP_Easy_Dev.autoload.php+26
    Constant TSP_EASY_DEV_PATH already defined

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/tsp-easy-dev/vendor/phpmailer/phpmailer/get_oauth_token.php
    • > /wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/demo/index.php
  • 95× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_Compile_Shared_Inheritance' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_Method_CompileAllTemplates' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_compileallconfig.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_Method_LoadFilter' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unloadfilter.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_shared_inheritance.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_Method_RegisterFilter' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterfilter.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_CacheResource_Custom' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/demo/plugins/cacheresource.mysql.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_CacheResource_Custom' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/demo/plugins/cacheresource.pdo.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Resource_Custom' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/demo/plugins/resource.mysql.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_ParseTree' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_tag.php:19

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/tsp-easy-dev.php
    • > Network (severe)
    wp-admin/tsp-easy-dev.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=tsp_plugins
    • > Network (severe)
    wp-content/plugins/tsp-easy-dev/vendor/twbs/bootstrap/dist/css/bootstrap-theme.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

tsp-easy-dev/tsp-easy-dev.php 85% from 13 tests

"LAPDI Easy Dev" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 297 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
  • Do not distribute dangerous files with your plugin
    • .ps1 - Windows PowerShell Cmdlet in Windows
      • wp-content/plugins/tsp-easy-dev/vendor/twbs/bootstrap/nuget/MyGet.ps1
218,559 lines of code in 1,444 files:
LanguageFilesBlank linesComment linesLines of code
HTML5178,9496,09677,771
PHP3013,05218,39229,303
JavaScript834,5292,84919,709
CSS401,39022517,991
LESS2013,6282,90117,867
Markdown873,673015,350
JSON2210014,335
Sass1432,6221,24811,643
YAML141,20098,916
SVG15003,749
yacc2253382988
Smarty9603611
Ruby35622147
XML32075
make222153
Bourne Shell1111742
PowerShell1459

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 135)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity18.32
▷ Minimum class complexity1.00
▷ Maximum class complexity479.00
Average method complexity4.02
▷ Minimum method complexity1.00
▷ Maximum method complexity135.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes222
▷ Abstract classes156.76%
▷ Concrete classes20793.24%
▷ Final classes31.45%
Methods1,296
▷ Static methods947.25%
▷ Public methods1,17490.59%
▷ Protected methods886.79%
▷ Private methods342.62%
Functions62
▷ Named functions6096.77%
▷ Anonymous functions23.23%
Constants252
▷ Global constants4819.05%
▷ Class constants20480.95%
▷ Public constants204100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
74 compressed PNG files occupy 0.99MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/twbs/bootstrap/site/docs/4.1/examples/screenshots/checkout.png27.52KB29.41KB0.00%
vendor/twbs/bootstrap/site/docs/4.1/examples/screenshots/product.png27.30KB29.57KB0.00%
vendor/twbs/bootstrap/site/docs/4.1/examples/screenshots/pricing.png28.45KB31.26KB0.00%
vendor/twbs/bootstrap/site/docs/4.1/examples/screenshots/navbar-static.png14.54KB15.84KB0.00%
vendor/twbs/bootstrap/site/docs/4.1/examples/screenshots/album.png25.75KB28.24KB0.00%