90% ascendoor-logo-slide

Code Review | Ascendoor Logo Slide

WordPress plugin Ascendoor Logo Slide scored90%from 54 tests.

About plugin

  • Plugin page: ascendoor-logo-slide
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2021
  • Latest release: Oct 22, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ascendoor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /363 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
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.50ms] Passed 4 tests

Analyzing server-side resources used by Ascendoor Logo Slide
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1143.39 ▲5.79
Dashboard /wp-admin3.41 ▲0.1051.91 ▼4.63
Posts /wp-admin/edit.php3.52 ▲0.1647.52 ▲3.71
Add New Post /wp-admin/post-new.php6.02 ▲0.1392.17 ▼14.38
Media Library /wp-admin/upload.php3.33 ▲0.1039.02 ▼2.68

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Ascendoor Logo Slide
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲16813.49 ▼0.509.30 ▲7.5342.92 ▼6.29
Dashboard /wp-admin2,217 ▲294.84 ▼0.06111.00 ▼25.2952.50 ▲12.48
Posts /wp-admin/edit.php2,109 ▲202.03 ▲0.0443.34 ▲0.3033.59 ▼2.45
Add New Post /wp-admin/post-new.php1,531 ▼823.35 ▼0.09631.18 ▼95.1081.07 ▲16.24
Media Library /wp-admin/upload.php1,411 ▲264.18 ▼0.03100.50 ▼5.6143.39 ▼10.83

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
10 plugin tags: partners, slide, animation, logo showcase, wordpress logo slide...

ascendoor-logo-slide/ascendoor-logo-slide.php Passed 13 tests

The main PHP file in "Ascendoor Logo Slide" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
Simple logo slide with CSS transition effects.

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
No dangerous file extensions were detected147,951 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS341,703259146,870
PHP13166468609
JavaScript410818472

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity18.00
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity4.97
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods412.90%
▷ Public methods1961.29%
▷ Protected methods00.00%
▷ Private methods1238.71%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants3
▷ Global constants3100.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
6 PNG files occupy 0.34MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png49.33KB23.04KB▼ 53.29%
assets/screenshot-2.png46.75KB20.19KB▼ 56.81%
admin/resources/build/images/WordPress-logotype-wmark.677ef454.png82.46KB25.93KB▼ 68.56%
assets/screenshot-4.png39.93KB17.16KB▼ 57.03%
admin/images/WordPress-logotype-wmark.png82.46KB25.93KB▼ 68.56%