78% flash-demo-import

Code Review | Flash Demo Import

WordPress plugin Flash Demo Import scored 78% from 54 tests.

About plugin

  • Plugin page: flash-demo-import
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Nov 7, 2020
  • Latest release: Nov 7, 2020
  • Number of updates: 3
  • Update frequency: every 5.4 days
  • Top authors: 99colorthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,690 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.95ms] Passed 4 tests

Server-side resources used by Flash Demo Import
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1440.68 ▼1.34
Dashboard /wp-admin3.44 ▲0.1445.30 ▼9.39
Posts /wp-admin/edit.php3.56 ▲0.2052.20 ▼2.97
Add New Post /wp-admin/post-new.php6.04 ▲0.1696.66 ▲1.92
Media Library /wp-admin/upload.php3.37 ▲0.1436.93 ▲2.02

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Flash Demo Import: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.37 ▼0.994.19 ▲2.4039.64 ▼3.98
Dashboard /wp-admin2,217 ▲294.87 ▲0.01108.85 ▲4.8040.80 ▲2.04
Posts /wp-admin/edit.php2,100 ▲112.03 ▲0.0140.43 ▼1.9337.38 ▼1.90
Add New Post /wp-admin/post-new.php1,524 ▼1823.13 ▲4.91663.23 ▲43.0146.74 ▼2.73
Media Library /wp-admin/upload.php1,399 ▲114.20 ▼0.0595.95 ▼3.7640.94 ▼3.84
Flash Demo Import /wp-admin/flash-demo-import.php260.440.0714.64

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/flash-demo-import/flash-demo-import.php

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/flash-demo-import.php
    • > Network (severe)
    wp-admin/flash-demo-import.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Theme Demos listing page.), #2 (Import the Demo with just one click.)
You can take inspiration from this readme.txt

flash-demo-import/flash-demo-import.php 92% from 13 tests

The main file in "Flash Demo Import" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected989 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9262299810
JavaScript1284111
CSS16068

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.14
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods4195.35%
▷ Protected methods12.33%
▷ Private methods12.33%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin