84% getitout-media-exporter

Code Review | GETitOUT Media Exporter

WordPress plugin GETitOUT Media Exporter scored84%from 54 tests.

About plugin

  • Plugin page: getitout-media-ex...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 15, 2021
  • Latest release: Dec 15, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: getitout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /426 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by GETitOUT Media Exporter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.38 ▲0.92
Dashboard /wp-admin3.32 ▲0.0148.28 ▼5.30
Posts /wp-admin/edit.php3.37 ▲0.0146.16 ▼6.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.68 ▼8.19
Media Library /wp-admin/upload.php3.24 ▲0.0134.22 ▼3.02

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for GETitOUT Media Exporter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▼0.271.70 ▲0.0143.90 ▲1.00
Dashboard /wp-admin2,195 ▲185.65 ▲0.0094.35 ▲6.7244.53 ▼2.02
Posts /wp-admin/edit.php2,097 ▼62.00 ▲0.0634.74 ▼4.6935.22 ▲3.64
Add New Post /wp-admin/post-new.php1,526 ▼023.17 ▼0.33663.76 ▼47.0472.77 ▲5.70
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.04100.45 ▼10.8046.49 ▲1.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
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/getitout-media-exporter/GIOPlugin.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: export content, auth, stable, landing pages, marketing...

getitout-media-exporter/GIOPlugin.php 85% from 13 tests

The main PHP script in "GETitOUT Media Exporter" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 322 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("getitout-media-exporter.php" instead of "GIOPlugin.php")

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 plugin79 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1261560
Markdown110014
JSON1005

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.15
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin