90% prezi-embedder

Code Review | Prezi Embedder

WordPress plugin Prezi Embedder scored 90% from 54 tests.

About plugin

  • Plugin page: prezi-embedder
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.7
  • WordPress version: 6.3.1
  • First release: Dec 25, 2012
  • Latest release: Dec 11, 2016
  • Number of updates: 42
  • Update frequency: every 34.5 days
  • Top authors: dan.rossiter (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

800+ active / 19,740 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Prezi Embedder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.87 ▼0.79
Dashboard /wp-admin3.31 ▲0.0043.03 ▼9.26
Posts /wp-admin/edit.php3.36 ▲0.0045.37 ▼0.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.71 ▼16.98
Media Library /wp-admin/upload.php3.23 ▲0.0037.21 ▲1.45

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Prezi Embedder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.75 ▲0.161.83 ▼0.4144.73 ▼2.89
Dashboard /wp-admin2,206 ▲185.85 ▲0.93100.08 ▼24.6841.81 ▼2.99
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0135.90 ▼0.6731.18 ▼5.79
Add New Post /wp-admin/post-new.php1,514 ▼2817.56 ▼0.72667.77 ▲75.3349.84 ▼8.64
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.01100.50 ▼12.8446.15 ▼0.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: presentation, embed, prezi, iframe

prezi-embedder/prezi-embedder.php 92% from 13 tests

The main PHP file in "Prezi Embedder" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)

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
Success! There were no dangerous files found in this plugin96 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1222996

PHP code Passed 2 tests

A short 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.51
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity6.67
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected