84% mega-store-companion

Code Review | Mega Store Companion

WordPress plugin Mega Store Companion scored84%from 54 tests.

About plugin

  • Plugin page: mega-store-companion
  • Plugin version: 1.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 18, 2018
  • Latest release: May 11, 2018
  • Number of updates: 11
  • Update frequency: every 5.0 days
  • Top authors: ThemeFarmer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.20ms] Passed 4 tests

A check of server-side resources used by Mega Store Companion
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.99 ▼2.75
Dashboard /wp-admin3.41 ▲0.1146.34 ▼1.30
Posts /wp-admin/edit.php3.46 ▲0.1048.03 ▲0.20
Add New Post /wp-admin/post-new.php5.99 ▲0.1093.34 ▼0.95
Media Library /wp-admin/upload.php3.33 ▲0.1037.71 ▲4.17

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mega Store Companion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.341.90 ▼0.1947.59 ▲4.38
Dashboard /wp-admin2,209 ▲345.86 ▲1.00101.75 ▼25.0342.04 ▼6.10
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0437.19 ▼1.1731.74 ▼0.13
Add New Post /wp-admin/post-new.php1,533 ▼023.21 ▲0.08663.39 ▼27.4753.35 ▼8.45
Media Library /wp-admin/upload.php1,382 ▼34.21 ▲0.0498.82 ▼5.8441.91 ▼1.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mega-store-companion/fields/repeater/inc/icons.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
4 plugin tags: testimonial, mega store, slider, mega store companion

mega-store-companion/mega-store-companion.php Passed 13 tests

The entry point to "Mega Store Companion" version 1.3 is a PHP file that has certain tags in its header comment area
111 characters long description:
Advance Extension For Mega Store Theme. enjoy full functionality of Mega Store theme by installing this plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin10,739 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript111,2493945,056
CSS13141343,117
PHP13258851,881
SVG100685

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity19.11
▷ Minimum class complexity3.00
▷ Maximum class complexity51.00
Average method complexity5.79
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods2470.59%
▷ Protected methods411.76%
▷ Private methods617.65%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin