84% text-effect-archive-design

Code Review | Text Effect Archive Design

WordPress plugin Text Effect Archive Design scored84%from 54 tests.

About plugin

  • Plugin page: text-effect-archi...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2017
  • Latest release: Aug 19, 2017
  • Number of updates: 28
  • Update frequency: every 0.0 days
  • Top authors: biscia7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /738 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.34ms] Passed 4 tests

Analyzing server-side resources used by Text Effect Archive Design
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.54 ▼2.85
Dashboard /wp-admin3.32 ▲0.0144.12 ▼6.21
Posts /wp-admin/edit.php3.37 ▲0.0143.71 ▼5.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.17 ▼23.01
Media Library /wp-admin/upload.php3.24 ▲0.0132.80 ▼0.39
Text Effect Archive Design /wp-admin/options-general.php?page=text_effect_archive_design3.2027.52

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Text Effect Archive Design
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.041.62 ▲0.0742.66 ▲3.77
Dashboard /wp-admin2,207 ▲185.83 ▲0.9296.35 ▼13.3939.42 ▼4.68
Posts /wp-admin/edit.php2,096 ▲71.99 ▲0.0040.36 ▼0.9837.12 ▼2.98
Add New Post /wp-admin/post-new.php1,517 ▼1817.86 ▼5.51684.82 ▲15.4857.40 ▲9.53
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0299.03 ▲0.6243.85 ▼2.12
Text Effect Archive Design /wp-admin/options-general.php?page=text_effect_archive_design8092.0224.6028.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/text-effect-archive-design/templates/rotate_text.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/text-effect-archive-design/templates/journal_title.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/text-effect-archive-design/text_effect_archive_design.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/text-effect-archive-design/templates/vintage_title.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/text-effect-archive-design/templates/shadow_text.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
8 plugin tags: font, effect, archive effect, shortcode, css...

text-effect-archive-design/text_effect_archive_design.php 92% from 13 tests

"Text Effect Archive Design" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("text-effect-archive-design.php" instead of "text_effect_archive_design.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin918 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS5224768
PHP5546150

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.31MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/template2.png8.09KB7.35KB▼ 9.22%
img/01.png279.54KB118.89KB▼ 57.47%
admin/img/template3.png3.57KB2.69KB▼ 24.61%
admin/img/template7.png22.00KB21.39KB▼ 2.81%
admin/img/template1.png5.96KB4.97KB▼ 16.73%