84% everyscape-viewer

Code Review | EveryScape Viewer

WordPress plugin EveryScape Viewer scored 84% from 54 tests.

About plugin

  • Plugin page: everyscape-viewer
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 26, 2015
  • Latest release: Aug 26, 2015
  • Number of updates: 6
  • Update frequency: every 1.3 days
  • Top authors: EveryScape (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 959 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by EveryScape Viewer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0236.56 ▼4.53
Dashboard /wp-admin3.32 ▲0.0145.38 ▼3.35
Posts /wp-admin/edit.php3.37 ▲0.0144.57 ▼1.49
Add New Post /wp-admin/post-new.php5.90 ▲0.01100.88 ▲2.65
Media Library /wp-admin/upload.php3.24 ▲0.0134.24 ▼2.49

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for EveryScape Viewer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.18 ▼1.231.65 ▼0.7741.44 ▼8.62
Dashboard /wp-admin2,209 ▲215.85 ▲0.94118.09 ▲11.5143.31 ▲0.35
Posts /wp-admin/edit.php2,092 ▲32.16 ▲0.1039.95 ▼2.7534.05 ▼4.57
Add New Post /wp-admin/post-new.php1,533 ▲1923.41 ▲5.81608.45 ▼142.8242.31 ▼14.74
Media Library /wp-admin/upload.php1,391 ▲64.27 ▲0.0997.82 ▼7.6542.49 ▼0.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/everyscape-viewer/everyscape-plugin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: everyscape, virtual tours

everyscape-viewer/everyscape-plugin.php 85% from 13 tests

This is the main PHP file of "EveryScape Viewer" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("everyscape-viewer.php" instead of "everyscape-plugin.php")
  • Domain Path: The domain path folder was not found ("/locale")

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
There were no executable files found in this plugin79 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2174768
HTML10011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods350.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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