84% underdev

Code Review | underDEV

WordPress plugin underDEV scored84%from 54 tests.

About plugin

  • Plugin page: underdev
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9.5
  • WordPress version: 6.3.1
  • First release: May 2, 2018
  • Latest release: May 2, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Kubitomakita (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /601 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
Install script ran successfully

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

A check of server-side resources used by underDEV
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.51 ▲2.42
Dashboard /wp-admin3.33 ▼0.0151.01 ▼11.13
Posts /wp-admin/edit.php3.39 ▲0.0349.23 ▼0.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.25 ▼22.45
Media Library /wp-admin/upload.php3.26 ▲0.0338.89 ▲3.07
underDEV /wp-admin/tools.php?page=underdev3.2834.34

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

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

Browser metrics Passed 4 tests

Checking browser requirements for underDEV
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.18 ▼0.411.73 ▼0.0343.58 ▼0.81
Dashboard /wp-admin2,204 ▲275.84 ▲0.1897.65 ▲5.0242.56 ▼2.84
Posts /wp-admin/edit.php2,112 ▲122.22 ▲0.1842.71 ▲6.2735.29 ▲0.72
Add New Post /wp-admin/post-new.php1,533 ▲723.33 ▲0.27664.49 ▼13.9162.67 ▲9.08
Media Library /wp-admin/upload.php1,409 ▲154.26 ▲0.0799.09 ▼25.1742.59 ▼2.17
underDEV /wp-admin/tools.php?page=underdev9211.8633.2735.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means 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
Please take a closer look at the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/underdev/views/settings/page.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\\underDEV\\Utils\\Settings' not found in wp-content/plugins/underdev/class/Settings.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\\underDEV\\Utils\\Cache\\Cache' not found in wp-content/plugins/underdev/class/Utils/Cache/ObjectCache.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/underdev/underdev.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\\underDEV\\Utils\\Cache\\Cache' not found in wp-content/plugins/underdev/class/Utils/Cache/Transient.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: debug, underdev, maintenance

underdev/underdev.php 92% from 13 tests

This is the main PHP file of "underDEV" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,738 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript54958852,569
PHP287441,3641,230
Sass7450866
XML29446
JSON10025
CSS2222

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity6.83
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces7
Interfaces1
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods136
▷ Static methods00.00%
▷ Public methods13599.26%
▷ Protected methods10.74%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin