83% media-features

Code Review | Media Features

WordPress plugin Media Features scored 83% from 54 tests.

About plugin

  • Plugin page: media-features
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4
  • WordPress version: 6.3.1
  • First release: Nov 6, 2012
  • Latest release: Nov 6, 2012
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: lightningspirit (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 6,955 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.13MB] [CPU: ▼3.79ms] Passed 4 tests

An overview of server-side resources used by Media Features
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.30 ▼4.13
Dashboard /wp-admin3.44 ▲0.1448.67 ▲0.25
Posts /wp-admin/edit.php3.55 ▲0.2045.08 ▲4.10
Add New Post /wp-admin/post-new.php6.01 ▲0.1282.77 ▼13.45
Media Library /wp-admin/upload.php3.36 ▲0.1336.58 ▲2.18
Categories /wp-admin/edit-tags.php?taxonomy=media_category3.3634.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
media_features_plugin_version
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Media Features
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5414.74 ▲0.091.66 ▼0.3044.15 ▼1.41
Dashboard /wp-admin2,217 ▲264.85 ▼0.02115.14 ▼0.8842.98 ▼5.54
Posts /wp-admin/edit.php2,102 ▲162.04 ▲0.0835.07 ▲0.6434.47 ▲5.06
Add New Post /wp-admin/post-new.php1,544 ▲1023.12 ▲0.03682.75 ▲33.6256.46 ▲5.39
Media Library /wp-admin/upload.php1,419 ▲314.20 ▲0.0399.15 ▼1.2343.65 ▲1.23
Categories /wp-admin/edit-tags.php?taxonomy=media_category1,2502.3031.0235.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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_action() in wp-content/plugins/media-features/media-features.php:64

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots require images: #1 (Organize files and images with categories and filt type), #2 (Create categories fo media), #3 (Associate categories to files), #4 (More controllers for media files)
You can look at the official readme.txt

media-features/media-features.php 92% from 13 tests

"Media Features" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)

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
There were no executable files found in this plugin623 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2146288347
PO File2100106264
CSS10012

PHP code Passed 2 tests

This is a very shot review of 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.23
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods2596.15%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.33MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png73.29KB31.78KB▼ 56.63%
screenshot-2.png75.94KB30.91KB▼ 59.30%
screenshot-1.png123.48KB47.92KB▼ 61.19%
screenshot-3.png65.99KB24.99KB▼ 62.13%