79% envira-tamer

Code Review | Envira Tamer

WordPress plugin Envira Tamer scored79%from 54 tests.

About plugin

  • Plugin page: envira-tamer
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Oct 22, 2014
  • Latest release: Nov 27, 2015
  • Number of updates: 4
  • Update frequency: every 100.3 days
  • Top authors: mikeselander (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,555 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.03MB] [CPU: ▼3.09ms] Passed 4 tests

Server-side resources used by Envira Tamer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.01 ▼2.96
Dashboard /wp-admin3.34 ▲0.0445.27 ▼2.84
Posts /wp-admin/edit.php3.39 ▲0.0450.32 ▼3.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0495.54 ▼3.47
Media Library /wp-admin/upload.php3.27 ▲0.0437.15 ▲3.09
Post Types /wp-admin/edit.php?post_type=envira&page=envira_tamer3.0325.60

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Envira Tamer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.331.53 ▼0.0440.34 ▼0.47
Dashboard /wp-admin2,206 ▲185.80 ▲0.91103.51 ▼5.8539.46 ▼4.33
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0340.87 ▼2.5236.12 ▲0.69
Add New Post /wp-admin/post-new.php1,533 ▲523.46 ▲5.21674.87 ▲5.0973.19 ▲20.33
Media Library /wp-admin/upload.php1,391 ▲64.27 ▲0.1195.72 ▼9.5540.52 ▼3.51
Post Types /wp-admin/edit.php?post_type=envira&page=envira_tamer280.440.074.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • 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 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/envira-tamer/envira-tamer.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=envira&page=envira_tamer
    • > Network (severe)
    wp-admin/edit.php?post_type=envira&page=envira_tamer - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: retrict, custom post type, envira gallery, gallery, cpt...

envira-tamer/envira-tamer.php Passed 13 tests

The entry point to "Envira Tamer" version 1.0.1 is a PHP file that has certain tags in its header comment area
66 characters long description:
Control which post types Envira Gallery meta box field shows up on

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected137 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP283107137

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.28
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected