78% speedwapp

Code Review | Speedwapp

WordPress plugin Speedwapp scored 78% from 54 tests.

About plugin

  • Plugin page: speedwapp
  • Plugin version: 0.9.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jul 18, 2022
  • Latest release: Jul 18, 2022
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: speedwapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 209 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.41MB] [CPU: ▼1.35ms] Passed 4 tests

This is a short check of server-side resources used by Speedwapp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4344.19 ▲0.61
Dashboard /wp-admin3.75 ▲0.4448.15 ▼6.85
Posts /wp-admin/edit.php3.80 ▲0.4452.07 ▲2.50
Add New Post /wp-admin/post-new.php6.27 ▲0.3890.84 ▼1.65
Media Library /wp-admin/upload.php3.61 ▲0.3740.26 ▲4.34

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
Speedwapp_Settings
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Speedwapp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.19 ▼1.201.70 ▼0.4136.46 ▼11.38
Dashboard /wp-admin2,231 ▲404.87 ▼1.02108.21 ▲2.7538.49 ▼8.02
Posts /wp-admin/edit.php2,107 ▲182.01 ▲0.0138.97 ▲5.7335.51 ▲0.39
Add New Post /wp-admin/post-new.php2,878 ▲1,34518.69 ▼4.46641.77 ▼43.7198.19 ▲33.79
Media Library /wp-admin/upload.php1,406 ▲154.21 ▼0.0496.56 ▼4.8441.21 ▼0.74

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • Speedwapp_Settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/speedwapp/speedwapp.php
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/speedwapp/modules/views/load-editor.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/speedwapp/modules/Post.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/speedwapp/modules/views/switch-editor.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/speedwapp/modules/SpeedwappSettings.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/speedwapp/includes/SpeedwappManager.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/speedwapp/modules/views/editor-full-screen.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/speedwapp/modules/SpeedwappAjax.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Speedwapp_Module' not found in wp-content/plugins/speedwapp/modules/SpeedwappAdmin.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/speedwapp/modules/views/switch-block-editor.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Contributors: Contributors not specified
You can look at the official readme.txt

speedwapp/speedwapp.php Passed 13 tests

"Speedwapp" version 0.9.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
23 characters long description:
Speedwapp for Wordpress

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 plugin2,680 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP195341,0121,978
JavaScript38059420
CSS3345213
Markdown10057
SVG20012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity18.08
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods148
▷ Static methods1812.16%
▷ Public methods12383.11%
▷ Protected methods1510.14%
▷ Private methods106.76%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/img/WP_Widget_Categories.png1.20KB0.81KB▼ 32.16%
modules/img/WP_Widget_Tag_Cloud.png3.08KB1.35KB▼ 56.26%
modules/img/WP_Widget_Calendar.png1.00KB0.58KB▼ 42.02%
modules/img/WP_Widget_Text.png2.45KB1.09KB▼ 55.47%
modules/img/WP_Widget_Recent_Posts.png1.55KB0.65KB▼ 57.90%