83% wp-webapp

Code Review | WP Webapp

WordPress plugin WP Webapp scored83%from 54 tests.

About plugin

  • Plugin page: wp-webapp
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Nov 1, 2013
  • Latest release: Nov 18, 2013
  • Number of updates: 27
  • Update frequency: every 0.9 days
  • Top authors: msb006 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /6,204 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by WP Webapp
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0322.69 ▼14.65
Dashboard /wp-admin3.36 ▲0.0144.34 ▼14.16
Posts /wp-admin/edit.php3.41 ▲0.0548.15 ▲1.37
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.86 ▼15.30
Media Library /wp-admin/upload.php3.28 ▲0.0534.18 ▼1.76
WP Webapp Settings /wp-admin/options-general.php?page=wp-webapp/wp-webapp-standard.php3.2535.12

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Webapp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.76 ▲0.371.87 ▲0.1743.93 ▲1.36
Dashboard /wp-admin2,213 ▲275.86 ▲0.9199.65 ▼6.0340.36 ▼3.26
Posts /wp-admin/edit.php2,093 ▲72.04 ▲0.0340.63 ▲4.7834.94 ▼0.52
Add New Post /wp-admin/post-new.php1,517 ▼1117.60 ▼0.52667.88 ▲28.4056.82 ▲1.53
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.0093.21 ▼20.9746.03 ▼1.67
WP Webapp Settings /wp-admin/options-general.php?page=wp-webapp/wp-webapp-standard.php9752.0225.0637.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-webapp/splash/wp-webapp-standard.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-webapp/wp-webapp-standard.php:24
    • > PHP Warning
      include(): Failed opening 'wp-content/plugins/wp-webapp/splash/EDD_SL_Plugin_Updater.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-webapp/splash/wp-webapp-standard.php on line 20
    • > PHP Warning
      include(wp-content/plugins/wp-webapp/splash/EDD_SL_Plugin_Updater.php): failed to open stream: No such file or directory in wp-content/plugins/wp-webapp/splash/wp-webapp-standard.php on line 20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-webapp/wp-webapp-standard.php 92% from 13 tests

The principal PHP file in "WP Webapp" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-webapp.php" instead of "wp-webapp-standard.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected939 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3166216563
JavaScript15616270
CSS11645106

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
9 PNG files occupy 1.19MB with 0.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
splash/splash-1496x2048.png298.49KB125.85KB▼ 57.84%
splash/splash-640x920.png124.18KB50.18KB▼ 59.59%
splash/splash-1536x2008.png299.43KB158.90KB▼ 46.93%
wpwebapp_logo-280.png24.21KB7.60KB▼ 68.60%
homeicon/wp-webapp_icon.png20.67KB11.36KB▼ 45.08%