90% geniipress-disable-embeds

Code Review | GeniiPress Disable Embeds

WordPress plugin GeniiPress Disable Embeds scored90%from 54 tests.

About plugin

  • Plugin page: geniipress-disabl...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.3-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 21, 2019
  • Latest release: Feb 21, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: geniipress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,470 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.23ms] Passed 4 tests

Analyzing server-side resources used by GeniiPress Disable Embeds
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.12 ▼5.51
Dashboard /wp-admin3.31 ▲0.0043.97 ▼3.73
Posts /wp-admin/edit.php3.36 ▲0.0047.64 ▲5.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.85 ▼12.58
Media Library /wp-admin/upload.php3.23 ▲0.0032.33 ▼3.08

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for GeniiPress Disable Embeds
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▲0.014.64 ▼1.7843.62 ▼4.03
Dashboard /wp-admin2,209 ▲215.86 ▲0.99102.86 ▼15.0040.76 ▼5.67
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0139.79 ▲1.9938.64 ▲5.45
Add New Post /wp-admin/post-new.php1,514 ▼817.75 ▼5.68670.83 ▲8.3052.84 ▼9.99
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.08100.44 ▼0.2543.18 ▼0.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
4 plugin tags: oembed, disable oembed, embeds, disable embeds

geniipress-disable-embeds/geniipress-disable-embeds.php Passed 13 tests

The primary PHP file in "GeniiPress Disable Embeds" version 1.0.0 is used by WordPress to initiate all plugin functionality
62 characters long description:
Disables the oEmbed feature from core, for a performance gain.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121510

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
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

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