83% offline-pages

Code Review | Offline Pages

WordPress plugin Offline Pages scored 83% from 54 tests.

About plugin

  • Plugin page: offline-pages
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2016
  • Latest release: Jan 27, 2016
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: offlinepages (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,892 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
This plugin's installer ran successfully

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

Server-side resources used by Offline Pages
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.59 ▼1.67
Dashboard /wp-admin3.32 ▲0.0143.56 ▼1.43
Posts /wp-admin/edit.php3.37 ▲0.0144.98 ▼1.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.85 ▲1.92
Media Library /wp-admin/upload.php3.24 ▲0.0134.96 ▼0.14
Offline /wp-admin/options-general.php?page=offline-pages3.2130.44

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 9 new options
New WordPress options
opwp_allow_author_pages
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
opwp_allow_category_pages
theysaidso_admin_options
opwp_allow_tag_pages

Browser metrics Passed 4 tests

This is an overview of browser requirements for Offline Pages
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲1713.24 ▼0.011.61 ▼2.8943.98 ▼1.17
Dashboard /wp-admin2,213 ▲75.80 ▲0.9493.34 ▼17.9739.49 ▲0.90
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0040.92 ▲1.3534.09 ▼1.72
Add New Post /wp-admin/post-new.php1,536 ▲1723.23 ▼0.14684.11 ▼4.5151.91 ▲3.59
Media Library /wp-admin/upload.php1,389 ▲44.14 ▼0.1399.15 ▼1.0845.45 ▲1.15
Offline /wp-admin/options-general.php?page=offline-pages9062.0523.6431.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • opwp_allow_author_pages
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • opwp_allow_tag_pages
    • theysaidso_admin_options
    • opwp_allow_category_pages

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
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/offline-pages/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt might help

offline-pages/index.php 85% from 13 tests

The main file in "Offline Pages" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("offline-pages.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 403 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected161 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12352161

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions6
▷ Named functions6100.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
There were not PNG files found in your plugin