84% wp-reel

Code Review | WP Reel

WordPress plugin WP Reel scored84%from 54 tests.

About plugin

  • Plugin page: wp-reel
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.8.1
  • WordPress version: 6.3.1
  • First release: May 4, 2015
  • Latest release: Apr 29, 2016
  • Number of updates: 27
  • Update frequency: every 31.0 days
  • Top authors: altert (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,885 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.04ms] Passed 4 tests

Server-side resources used by WP Reel
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.31 ▲4.31
Dashboard /wp-admin3.34 ▼0.0044.33 ▼19.16
Posts /wp-admin/edit.php3.39 ▲0.0448.72 ▲6.65
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.68 ▼14.91
Media Library /wp-admin/upload.php3.27 ▲0.0431.93 ▲1.62

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Reel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲11013.64 ▼0.926.53 ▲4.5743.02 ▼1.29
Dashboard /wp-admin2,209 ▲214.82 ▼0.9899.63 ▼16.3237.32 ▼9.41
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0139.85 ▼0.0335.19 ▼0.57
Add New Post /wp-admin/post-new.php1,528 ▼1518.52 ▲0.17603.84 ▼7.0149.23 ▼18.28
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0794.25 ▼2.7442.91 ▼0.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-reel/wp-reel.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
8 plugin tags: 3d, animation, slideshow, panorama, jquery...

wp-reel/wp-reel.php Passed 13 tests

The main PHP file in "WP Reel" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
This plugin allows to replace WP gallery with jQuery.Reel by Petr Vostřel

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
Success! There were no dangerous files found in this plugin243 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15331170
JavaScript12941
PO File191432

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions7
▷ Named functions7100.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
No PNG files were detected