94% 3d-effect-text

Code Review | 3D Effect Text

WordPress plugin 3D Effect Text scored 94% from 54 tests.

About plugin

  • Plugin page: 3d-effect-text
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8.1
  • WordPress version: 5.8.1
  • First release: Aug 12, 2017
  • Latest release: Aug 13, 2017
  • Number of updates: 23
  • Update frequency: every 0.0 days
  • Top authors: biscia7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 852 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼144.76ms] Passed 4 tests

This is a short check of server-side resources used by 3D Effect Text
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0128.27 ▼0.64
Dashboard /wp-admin3.06 ▲0.0041.67 ▲1.80
Posts /wp-admin/edit.php3.12 ▲0.0131.95 ▼4.28
Add New Post /wp-admin/post-new.php5.43 ▼0.0174.63 ▼575.38
Media Library /wp-admin/upload.php3.01 ▲0.0029.87 ▲1.27

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: no files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for 3D Effect Text
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,667 ▲4115.88 ▼0.099.36 ▲2.7274.93 ▼5.46
Dashboard /wp-admin2,930 ▲346.09 ▼0.08116.50 ▼16.69172.83 ▼2.92
Posts /wp-admin/edit.php2,737 ▼63.22 ▼0.0162.53 ▼4.76135.84 ▼7.26
Add New Post /wp-admin/post-new.php3,743 ▲819.23 ▲0.58424.91 ▼21.16167.17 ▲7.66
Media Library /wp-admin/upload.php1,749 ▼35.58 ▲0.09137.77 ▼1.87184.32 ▼0.92

Uninstaller [IO: ✅] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/3d-effect-text/3D_effect_text.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (‘/screenshot-1.png’.)
Please take inspiration from this readme.txt

3d-effect-text/3D_effect_text.php 92% from 13 tests

The primary PHP file in "3D Effect Text" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("3d-effect-text.php" instead of "3D_effect_text.php")

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
Success! There were no dangerous files found in this plugin40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13926
CSS10014

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.00
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%
Functions2
▷ Named functions2100.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
No PNG files were detected