90% easy-panorama

Code Review | Easy Panorama

WordPress plugin Easy Panorama scored90%from 54 tests.

About plugin

  • Plugin page: easy-panorama
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2016
  • Latest release: Jan 25, 2023
  • Number of updates: 31
  • Update frequency: every 75.1 days
  • Top authors: LeoPeo (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /12,690 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.84ms] Passed 4 tests

A check of server-side resources used by Easy Panorama
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.70 ▼8.62
Dashboard /wp-admin3.36 ▲0.0658.44 ▲1.78
Posts /wp-admin/edit.php3.48 ▲0.1251.77 ▲11.96
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.91 ▼9.80
Media Library /wp-admin/upload.php3.27 ▲0.0434.18 ▲1.27
Easy Panorama /wp-admin/options-general.php?page=easy-panorama-settings3.2638.06

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Panorama
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,047 ▲28615.25 ▲0.897.79 ▲5.7839.18 ▼6.97
Dashboard /wp-admin2,335 ▲1616.15 ▲0.59146.55 ▲45.3639.63 ▼3.73
Posts /wp-admin/edit.php2,266 ▲1633.34 ▲1.3550.25 ▲10.1331.24 ▲1.17
Add New Post /wp-admin/post-new.php6,372 ▲4,83527.91 ▲9.59909.45 ▲295.4237.74 ▼31.24
Media Library /wp-admin/upload.php1,406 ▲64.18 ▼0.0386.96 ▼20.4046.50 ▲4.47
Easy Panorama /wp-admin/options-general.php?page=easy-panorama-settings1,1553.0137.6637.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: mobile, responsive, paver, image, gutenberg...

easy-panorama/easy-panorama.php 92% from 13 tests

The main PHP script in "Easy Panorama" version 1.1.5 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,657 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP9171637704
JavaScript94890629
PO File15053153
Markdown122061
JSON10043
Sass13024
YAML15021
XML16720
CSS2012

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.83
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods52
▷ Static methods00.00%
▷ Public methods4484.62%
▷ Protected methods00.00%
▷ Private methods815.38%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin