84% wpshapere-lite

Code Review | WPShapere Lite

WordPress plugin WPShapere Lite scored84%from 54 tests.

About plugin

  • Plugin page: wpshapere-lite
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Nov 11, 2022
  • Number of updates: 9
  • Update frequency: every 98.8 days
  • Top authors: acmeedesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,425 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.35ms] Passed 4 tests

An overview of server-side resources used by WPShapere Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0823.24 ▼16.03
Dashboard /wp-admin3.47 ▲0.1745.69 ▼2.67
Posts /wp-admin/edit.php3.52 ▲0.1751.29 ▲4.56
Add New Post /wp-admin/post-new.php5.99 ▲0.1084.39 ▼5.15
Media Library /wp-admin/upload.php3.33 ▲0.1031.37 ▼1.55
Import-Export Settings /wp-admin/admin.php?page=wps_impexp_settings3.3030.76
Premium Version /wp-admin/admin.php?page=wps_premium3.3032.15
WPShapere /wp-admin/admin.php?page=wpshapere-options3.3733.90

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
wps_adminbar_list
can_compress_scripts
wps_widgets_list
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
wpshapere_options

Browser metrics Passed 4 tests

WPShapere Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲12413.58 ▼1.051.65 ▼0.1140.10 ▲0.61
Dashboard /wp-admin2,239 ▲485.03 ▲0.09100.61 ▼8.7234.49 ▼7.76
Posts /wp-admin/edit.php2,108 ▲192.05 ▲0.0439.30 ▲3.6029.61 ▼2.79
Add New Post /wp-admin/post-new.php1,549 ▲718.32 ▼0.03612.77 ▼5.1665.73 ▲16.78
Media Library /wp-admin/upload.php1,415 ▲244.11 ▼0.0998.60 ▲0.5037.93 ▼4.33
Import-Export Settings /wp-admin/admin.php?page=wps_impexp_settings8582.0222.6530.02
Premium Version /wp-admin/admin.php?page=wps_premium8122.0126.0131.16
WPShapere /wp-admin/admin.php?page=wpshapere-options3,2467.87200.5482.82

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: 9 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • wps_widgets_list
    • wps_adminbar_list
    • widget_recent-posts
    • wpshapere_options
    • can_compress_scripts
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wpshapere-lite/wpshapere-lite.php:28
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wpshapere-lite/assets/css/wpshapere.login.css.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wpshapere-lite/assets/css/wpshapere.css.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wpshapere-lite/includes/acmee-framework/acmee-framework.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: wordpress admin, wordpress admin theme, white label

wpshapere-lite/wpshapere-lite.php 92% from 13 tests

The main PHP script in "WPShapere Lite" version 1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,941 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP143412242,731
CSS791153715
JavaScript34236270
PO File199101225

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity50.00
▷ Minimum class complexity1.00
▷ Maximum class complexity138.00
Average method complexity3.99
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods82
▷ Static methods00.00%
▷ Public methods82100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.74MB with 0.35MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wpshapere-premium-banner.png746.56KB199.99KB▼ 73.21%
assets/images/wpshapere.png6.19KB1.92KB▼ 69.05%
assets/images/login-sprite.png0.62KB0.65KB0.00%