78% post-magic-slider

Code Review | Post Magic Slider

WordPress plugin Post Magic Slider scored78%from 54 tests.

About plugin

  • Plugin page: post-magic-slider
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Sep 21, 2015
  • Number of updates: 12
  • Update frequency: every 1.2 days
  • Top authors: AboZain (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,611 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.16MB] [CPU: ▼13.68ms] Passed 4 tests

Analyzing server-side resources used by Post Magic Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0448.55 ▲6.65
Dashboard /wp-admin3.39 ▲0.0050.64 ▼15.61
Posts /wp-admin/edit.php3.50 ▲0.1051.64 ▼7.11
Add New Post /wp-admin/post-new.php5.22 ▼0.7168.64 ▼35.18
Media Library /wp-admin/upload.php3.31 ▲0.0438.35 ▲3.17
Post Magic Slider /wp-admin/options-general.php?page=magic-slider3.2529.88

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

Browser metrics Passed 4 tests

An overview of browser requirements for Post Magic Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.37 ▲0.091.55 ▼0.0639.03 ▼2.93
Dashboard /wp-admin2,199 ▲195.59 ▼0.0291.95 ▲0.7542.51 ▼0.54
Posts /wp-admin/edit.php2,104 ▲41.98 ▲0.0140.43 ▲4.0037.33 ▲1.38
Add New Post /wp-admin/post-new.php1,529 ▲123.05 ▲0.01606.78 ▼57.5252.61 ▼10.00
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0897.30 ▼10.3442.99 ▼7.97
Post Magic Slider /wp-admin/options-general.php?page=magic-slider9522.0223.6527.06

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
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=magic-slider
    • > Notice in wp-content/plugins/post-magic-slider/post-magic-slider.php+46
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=magic-slider
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=magic-slider
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-magic-slider/post-magic-slider.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: You can look at the official readme.txt

post-magic-slider/post-magic-slider.php Passed 13 tests

The primary PHP file in "Post Magic Slider" version 1.3 is used by WordPress to initiate all plugin functionality
32 characters long description:
Add flexslider to any post type.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin626 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS31752318
PHP26740288
SVG10019
JavaScript1041

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/bg_play_pause.png1.51KB0.52KB▼ 65.52%