84% wp-offscreen-navigation

Code Review | WP Offscreen Navigation

WordPress plugin WP Offscreen Navigation scored 84% from 54 tests.

About plugin

  • Plugin page: wp-offscreen-navi...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 19, 2013
  • Latest release: Jul 19, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: sareiodata (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 2,369 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by WP Offscreen Navigation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.38 ▼0.30
Dashboard /wp-admin3.31 ▲0.0146.11 ▼2.15
Posts /wp-admin/edit.php3.36 ▲0.0147.44 ▲1.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.05 ▼6.75
Media Library /wp-admin/upload.php3.24 ▲0.0131.75 ▼0.10

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Offscreen Navigation
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲19013.62 ▼0.767.71 ▲5.8439.91 ▼4.83
Dashboard /wp-admin2,206 ▲184.85 ▼0.03112.21 ▼3.5738.03 ▼5.96
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0239.73 ▲2.9534.95 ▼1.08
Add New Post /wp-admin/post-new.php1,514 ▼017.76 ▲0.25661.99 ▼43.0654.84 ▼2.63
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.0793.88 ▼6.6440.49 ▼3.08

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-offscreen-navigation/won.php:27
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-offscreen-navigation/won.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Backend Menus section), #2 (How it looks on the front-end)
You can look at the official readme.txt

wp-offscreen-navigation/won.php 92% from 13 tests

The primary PHP file in "WP Offscreen Navigation" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-offscreen-navigation.php" instead of "won.php")

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
Everything looks great! No dangerous files found in this plugin450 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS132213
JavaScript13335201
PHP1142536

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for 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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png62.40KB28.88KB▼ 53.71%
assets/screenshot-2.png19.59KB10.63KB▼ 45.76%