84% wander

Code Review | Wander

WordPress plugin Wander scored84%from 54 tests.

About plugin

  • Plugin page: wander
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 9, 2018
  • Latest release: Mar 9, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ryderdamen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /760 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.18ms] Passed 4 tests

A check of server-side resources used by Wander
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0125.89 ▼17.36
Dashboard /wp-admin3.39 ▲0.0844.97 ▼5.29
Posts /wp-admin/edit.php3.50 ▲0.1445.85 ▼1.51
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.99 ▼1.20
Media Library /wp-admin/upload.php3.31 ▲0.0834.72 ▼4.57

Server storage [IO: ▲1.60MB] [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: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Wander: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲19014.72 ▲0.075.58 ▲3.7639.23 ▼4.05
Dashboard /wp-admin2,244 ▲556.10 ▲1.15121.99 ▲1.7040.65 ▼6.92
Posts /wp-admin/edit.php2,135 ▲642.86 ▲0.8445.98 ▲6.2734.90 ▼0.13
Add New Post /wp-admin/post-new.php1,553 ▲3418.96 ▼4.29624.23 ▼31.8235.95 ▼22.45
Media Library /wp-admin/upload.php1,429 ▲475.40 ▲1.18100.51 ▲5.5241.71 ▼1.44

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wander/Wander.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wander/lib/menu.php:475

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please describe screenshot #3 in wander/assets to your readme.txt
The official readme.txt is a good inspiration

wander/Wander.php 92% from 13 tests

The primary PHP file in "Wander" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wander.php" instead of "Wander.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
Everything looks great! No dangerous files found in this plugin2,786 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JSON3001,237
JavaScript48377705
PHP4210134683
CSS4373161

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity36.00
▷ Minimum class complexity28.00
▷ Maximum class complexity44.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin