90% animated-pixel-marquee-creator

Code Review | Animated Pixel Marquee Creator

WordPress plugin Animated Pixel Marquee Creator scored 90% from 54 tests.

About plugin

  • Plugin page: animated-pixel-ma...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 18, 2020
  • Latest release: Sep 6, 2020
  • Number of updates: 8
  • Update frequency: every 2.4 days
  • Top authors: tekafran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 521 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼13.25ms] Passed 4 tests

An overview of server-side resources used by Animated Pixel Marquee Creator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.57 ▼37.60
Dashboard /wp-admin3.33 ▲0.0346.26 ▼2.51
Posts /wp-admin/edit.php3.38 ▲0.0349.90 ▼8.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.82 ▼4.69
Media Library /wp-admin/upload.php3.25 ▲0.0337.38 ▼1.97
APMC Settings /wp-admin/options-general.php?page=slm_options3.2233.58
Char Editor /wp-admin/admin.php?page=slm_caracteres3.3133.97
All Marquees /wp-admin/admin.php?page=slm_tablelist3.6236.92
Add new Marquee /wp-admin/admin.php?page=slm_agregar3.3032.08

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: 3 new tables, 7 new options
New tables
wp_apmc_marcadores
wp_apmc_marquees
wp_apmc_caracteres
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
apmc_version
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Animated Pixel Marquee Creator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲2314.78 ▲0.561.78 ▼0.4243.28 ▼2.30
Dashboard /wp-admin2,254 ▲454.87 ▲0.00107.62 ▼2.2937.55 ▼7.06
Posts /wp-admin/edit.php2,137 ▲482.03 ▼0.0243.13 ▲1.0935.65 ▼3.95
Add New Post /wp-admin/post-new.php1,566 ▲3323.15 ▲1.90695.79 ▼33.9152.64 ▼10.61
Media Library /wp-admin/upload.php1,436 ▲514.26 ▲0.07100.07 ▼32.4445.22 ▼11.84
APMC Settings /wp-admin/options-general.php?page=slm_options8292.0427.3531.96
Char Editor /wp-admin/admin.php?page=slm_caracteres1,1812.1134.3470.86
All Marquees /wp-admin/admin.php?page=slm_tablelist9542.0826.1828.39
Add new Marquee /wp-admin/admin.php?page=slm_agregar1,1021.7225.9958.66

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: warnings, pixels, advertising, chars, signs...

animated-pixel-marquee-creator/animated-pixel-marquee-creator.php Passed 13 tests

This is the main PHP file of "Animated Pixel Marquee Creator" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
87 characters long description:
Animated Pixel Marquee Creator generates animated pixel panel simulating the electronic

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,792 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP153855931,761
JavaScript510018590
CSS3520441

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity72.00
▷ Minimum class complexity20.00
▷ Maximum class complexity124.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces15
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods57
▷ Static methods00.00%
▷ Public methods3663.16%
▷ Protected methods2136.84%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/eliminar.png0.58KB0.38KB▼ 34.13%
img/pegar.png1.54KB0.95KB▼ 38.36%
img/extrem1.png2.04KB1.70KB▼ 16.98%
img/borrar.png0.92KB0.44KB▼ 51.97%
img/marcador2.png1.41KB0.70KB▼ 50.17%