10% limesquare-tweaks

Code Review | LimeSquare Tweaks

WordPress plugin LimeSquare Tweaks scored10%from 54 tests.

About plugin

  • Plugin page: limesquare-tweaks
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 8, 2013
  • Latest release: Mar 4, 2013
  • Number of updates: 7
  • Update frequency: every 3.4 days
  • Top authors: limesquare (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,017 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/limesquare-tweaks/widgets/google-maps.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; GoogleMapsWidget has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼55.59ms] Passed 4 tests

An overview of server-side resources used by LimeSquare Tweaks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.67 ▼38.38
Dashboard /wp-admin2.10 ▼1.245.81 ▼53.53
Posts /wp-admin/edit.php2.10 ▼1.255.51 ▼39.88
Add New Post /wp-admin/post-new.php2.10 ▼3.786.98 ▼90.56
Media Library /wp-admin/upload.php2.10 ▼1.135.31 ▼31.50
LimeSquare /wp-admin/options-general.php?page=limesquare2.105.48

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_googlemapswidget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for LimeSquare Tweaks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3514.81 ▲0.172.11 ▲0.1442.57 ▼0.69
Dashboard /wp-admin2,210 ▲254.87 ▼1.00110.56 ▲5.3641.70 ▼3.74
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0934.87 ▼7.2435.58 ▲0.07
Add New Post /wp-admin/post-new.php1,538 ▲1523.32 ▲0.25673.85 ▲14.6355.65 ▼0.06
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0299.48 ▲2.6943.69 ▲0.59
LimeSquare /wp-admin/options-general.php?page=limesquare7992.0625.0727.01

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
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/limesquare-tweaks/widgets/google-maps.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; GoogleMapsWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_googlemapswidget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=limesquare
    • > Deprecated in wp-content/plugins/limesquare-tweaks/widgets/google-maps.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; GoogleMapsWidget has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=limesquare
    • > Deprecated in wp-content/plugins/limesquare-tweaks/widgets/google-maps.php+123
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=limesquare
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in GoogleMapsWidget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=limesquare
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=limesquare
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 fix the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/limesquare-tweaks/options/google-analytics.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/limesquare-tweaks/mods/login-page.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/limesquare-tweaks/mods/shortcode-fix.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/limesquare-tweaks/widgets/google-maps.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/limesquare-tweaks/widgets/google-maps.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

limesquare-tweaks/limesquare-tweaks.php 92% from 13 tests

This is the main PHP file of "LimeSquare Tweaks" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)

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
Success! There were no dangerous files found in this plugin236 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP57220236

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
mods/login-logo.png10.37KB4.23KB▼ 59.22%