84% shape-master

Code Review | Shape Master

WordPress plugin Shape Master scored84%from 54 tests.

About plugin

  • Plugin page: shape-master
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Aug 18, 2020
  • Latest release: Aug 18, 2020
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: shadab109 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /474 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.63ms] Passed 4 tests

An overview of server-side resources used by Shape Master
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.99 ▼5.28
Dashboard /wp-admin3.33 ▲0.0243.96 ▼5.83
Posts /wp-admin/edit.php3.38 ▲0.0244.04 ▼4.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.58 ▼15.26
Media Library /wp-admin/upload.php3.25 ▲0.0233.10 ▼1.02

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Shape Master
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.63 ▼1.121.87 ▲0.1240.05 ▼1.34
Dashboard /wp-admin2,224 ▲334.84 ▼1.05105.02 ▼0.7538.51 ▼7.02
Posts /wp-admin/edit.php2,106 ▲172.03 ▲0.0041.70 ▲1.2837.15 ▲4.87
Add New Post /wp-admin/post-new.php1,546 ▲2723.04 ▼0.07598.21 ▼10.7760.86 ▲1.72
Media Library /wp-admin/upload.php1,406 ▲154.23 ▲0.06103.07 ▼4.7042.74 ▼2.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Core\\ElsmController' not found in wp-content/plugins/shape-master/inc/Core/ElsmShapeMaster.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: wordpress page builder, elementor addon, addons, elements, visual editor...

shape-master/shape-master.php Passed 13 tests

"Shape Master" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
135 characters long description:
Shape Master is a niche Elementor Addons which can help you build any shapes to give your website a different level of appeal visually.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,531 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP122303483,194
JavaScript111319319
JSON20018

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.43
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes228.57%
Methods41
▷ Static methods717.07%
▷ Public methods3995.12%
▷ Protected methods00.00%
▷ Private methods24.88%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin