94% wao-io

Code Review | wao.io

WordPress plugin wao.io scored 94% from 54 tests.

About plugin

  • Plugin page: wao-io
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 5.8.1
  • First release: Feb 4, 2020
  • Latest release: Aug 11, 2020
  • Number of updates: 15
  • Update frequency: every 12.7 days
  • Top authors: waoio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 591 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼137.90ms] Passed 4 tests

This is a short check of server-side resources used by wao.io
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.29 ▲13.51
Dashboard /wp-admin3.07 ▲0.0144.00 ▼1.16
Posts /wp-admin/edit.php3.12 ▲0.0144.07 ▼0.88
Add New Post /wp-admin/post-new.php5.43 ▼0.0088.91 ▼549.46
Media Library /wp-admin/upload.php3.01 ▲0.0035.06 ▼0.11

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 64 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

wao.io: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,782 ▲18615.83 ▲0.287.81 ▼0.9550.48 ▲6.74
Dashboard /wp-admin3,073 ▲1425.90 ▼0.03132.81 ▼10.72108.69 ▼11.55
Posts /wp-admin/edit.php2,842 ▲1032.69 ▲0.0061.75 ▼2.5384.07 ▼10.92
Add New Post /wp-admin/post-new.php1,511 ▲1118.83 ▲0.38361.80 ▲0.36109.06 ▼0.06
Media Library /wp-admin/upload.php1,914 ▲1075.04 ▲0.04155.36 ▲3.39116.43 ▼1.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 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/wao-io/wao.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wao-io/index.php:7

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 Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: optimize, optimizer, caching, performance, cache...

wao-io/wao.php 85% from 13 tests

The primary PHP file in "wao.io" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.9" instead of "4.6")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wao-io.php" instead of "wao.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,465 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP221603,337
SVG200125
JavaScript20123

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo-icon.png7.96KB3.84KB▼ 51.80%
wao-template/801e703e8f57d53663f2039b7eae3cbf.png252.47KB100.04KB▼ 60.38%
wao-template/images/logo-icon.png7.96KB3.84KB▼ 51.80%