84% mexp-flickr

Code Review | MEXP Flickr

WordPress plugin MEXP Flickr scored84%from 54 tests.

About plugin

  • Plugin page: mexp-flickr
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8
  • WordPress version: 6.3.1
  • First release: Dec 23, 2013
  • Latest release: Dec 23, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: akeda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /803 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: ▼7.09ms] Passed 4 tests

Analyzing server-side resources used by MEXP Flickr
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.74 ▼3.95
Dashboard /wp-admin3.32 ▼0.0345.19 ▼13.03
Posts /wp-admin/edit.php3.37 ▲0.0148.10 ▲2.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.95 ▼10.94
Media Library /wp-admin/upload.php3.25 ▲0.0135.54 ▼0.43

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for MEXP Flickr
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.131.55 ▼0.1238.11 ▼0.23
Dashboard /wp-admin2,198 ▲215.64 ▼0.0283.40 ▼3.6438.51 ▼5.00
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0141.07 ▲5.0435.54 ▲0.24
Add New Post /wp-admin/post-new.php1,532 ▼523.00 ▲4.74662.26 ▲47.0467.33 ▲7.63
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.0894.18 ▼2.0640.94 ▼2.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'MEXP_Service' not found in wp-content/plugins/mexp-flickr/includes/service.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'MEXP_Template' not found in wp-content/plugins/mexp-flickr/includes/template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mexp-flickr/mexp-flickr.php:126

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: mexp, flickr, media, media explorer

mexp-flickr/mexp-flickr.php 92% from 13 tests

The entry point to "MEXP Flickr" version 0.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin798 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP690200446
Bourne Again Shell24124166
Markdown331071
Bourne Shell112647
YAML15028
XML13024
CSS13016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.40
▷ Minimum class complexity2.00
▷ Maximum class complexity23.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin