84% spediex-for-theme

Code Review | Spediex For Theme

WordPress plugin Spediex For Theme scored84%from 54 tests.

About plugin

  • Plugin page: spediex-for-theme
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9.2
  • WordPress version: 6.3.1
  • First release: Mar 16, 2022
  • Latest release: Apr 26, 2022
  • Number of updates: 4
  • Update frequency: every 10.2 days
  • Top authors: reviewexchanger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,987 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.03MB] [CPU: ▼4.28ms] Passed 4 tests

Server-side resources used by Spediex For Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.79 ▼0.90
Dashboard /wp-admin3.34 ▲0.0348.52 ▼5.35
Posts /wp-admin/edit.php3.39 ▲0.0348.88 ▼5.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.99 ▼5.29
Media Library /wp-admin/upload.php3.26 ▲0.0336.87 ▼0.14

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Spediex For Theme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▼0.001.78 ▲0.1539.59 ▼2.81
Dashboard /wp-admin2,200 ▲235.61 ▲0.0387.04 ▼10.5841.86 ▲2.76
Posts /wp-admin/edit.php2,102 ▼12.02 ▲0.0341.53 ▼3.0435.18 ▼2.54
Add New Post /wp-admin/post-new.php1,528 ▼623.48 ▲5.27697.37 ▲67.1564.76 ▼8.41
Media Library /wp-admin/upload.php1,405 ▲54.21 ▲0.0898.65 ▼14.1144.21 ▼4.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spediex-for-theme/inc/pro/features/our-services.php:562
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spediex-for-theme/inc/free/features/featured-section.php:379
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spediex-for-theme/inc/free/features/featured-slider.php:348
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spediex-for-theme/inc/pro/features/about-section.php:469
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spediex-for-theme/inc/free/features/our-team.php:602
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spediex-for-theme/inc/free/features/section-hide-show.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spediex-for-theme/inc/free/features/our-sponsors.php:332
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spediex-for-theme/inc/pro/features/our-testimonial.php:560
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spediex-for-theme/inc/pro/features/featured-section.php:436
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spediex-for-theme/inc/free/features/our-portfolio.php:477

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

spediex-for-theme/spediex-for-theme.php Passed 13 tests

The main file in "Spediex For Theme" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
33 characters long description:
Import all the demos on your site

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
Everything looks great! No dangerous files found in this plugin9,649 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP441285719,535
CSS11669
JavaScript29045

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods22
▷ Static methods522.73%
▷ Public methods2195.45%
▷ Protected methods14.55%
▷ Private methods00.00%
Functions75
▷ Named functions75100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin