83% f13-movie-shortcode

Code Review | F13 Movies

WordPress plugin F13 Movies scored 83% from 54 tests.

About plugin

  • Plugin page: f13-movie-shortcode
  • Plugin version: 2.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2016
  • Latest release: Jul 8, 2023
  • Number of updates: 23
  • Update frequency: every 110.6 days
  • Top authors: f13dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 4,046 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by F13 Movies
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.95 ▼13.73
Dashboard /wp-admin3.32 ▲0.0152.19 ▼3.63
Posts /wp-admin/edit.php3.37 ▲0.0170.32 ▲15.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.44 ▼11.51
Media Library /wp-admin/upload.php3.24 ▲0.0138.59 ▲3.98
Movie /wp-admin/admin.php?page=f13-movies3.2945.65
Plugins /wp-admin/admin.php?page=f13-settings3.22490.34

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for F13 Movies
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲6113.71 ▼1.145.08 ▲3.0942.76 ▼2.57
Dashboard /wp-admin2,226 ▲205.82 ▼0.04117.43 ▲12.3959.97 ▲20.19
Posts /wp-admin/edit.php2,112 ▲201.97 ▼0.0940.30 ▲1.3536.88 ▲1.40
Add New Post /wp-admin/post-new.php1,557 ▲1523.08 ▲4.75653.58 ▼41.4165.01 ▲10.38
Media Library /wp-admin/upload.php1,405 ▲174.24 ▲0.01102.00 ▼3.3244.55 ▲0.82
Movie /wp-admin/admin.php?page=f13-movies8692.0425.2526.98
Plugins /wp-admin/admin.php?page=f13-settings9272.0229.0231.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/f13-movie-shortcode/f13-movies.php on line 14
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/f13-movie-shortcode/f13-movies.php on line 14
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/f13-movie-shortcode/f13-movies.php on line 14

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 errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === f13-movie-shortcode === )
  • Screenshots: These screenshots lack descriptions #2, #3 in f13-movie-shortcode/assets to your readme.txt
Please take inspiration from this readme.txt

f13-movie-shortcode/f13-movies.php 85% from 13 tests

The main PHP file in "F13 Movies" ver. 2.1.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("f13-movie-shortcode.php" instead of "f13-movies.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,004 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP813612890
Markdown134081
CSS23033

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity17.75
▷ Minimum class complexity3.00
▷ Maximum class complexity43.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods34
▷ Static methods38.82%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.48MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png189.02KB184.15KB▼ 2.57%
screenshot-2.png121.94KB116.64KB▼ 4.34%
screenshot-3.png183.46KB179.58KB▼ 2.11%