78% title-icons

Code Review | Title Icons

WordPress plugin Title Icons scored 78% from 54 tests.

About plugin

  • Plugin page: title-icons
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: Dec 24, 2012
  • Latest release: Dec 24, 2012
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: kevinpsiu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,789 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.69MB] [CPU: ▼16.81ms] Passed 4 tests

This is a short check of server-side resources used by Title Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.26 ▼3.26
Dashboard /wp-admin3.31 ▲0.0147.67 ▼8.91
Posts /wp-admin/edit.php3.36 ▲0.0150.25 ▲0.75
Add New Post /wp-admin/post-new.php3.10 ▼2.7937.26 ▼55.80
Media Library /wp-admin/upload.php3.23 ▲0.0134.52 ▲0.97
Title Icons /wp-admin/options-general.php?page=titleicons3.1830.30

Server storage [IO: ▲0.23MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Title Icons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.33 ▼1.431.71 ▲0.0442.31 ▼3.41
Dashboard /wp-admin2,207 ▲194.85 ▼1.03111.20 ▲6.9539.73 ▼5.06
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0440.28 ▲2.0635.48 ▲0.37
Add New Post /wp-admin/post-new.php6,826 ▲5,31229.21 ▲11.621,082.59 ▲389.0443.07 ▼6.88
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0291.49 ▼18.3140.56 ▼7.68
Title Icons /wp-admin/options-general.php?page=titleicons1,1021.6925.09138.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=titleicons
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=titleicons
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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
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_filter() in wp-content/plugins/title-icons/titleicons.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: title, posts

title-icons/titleicons.php 92% from 13 tests

This is the main PHP file of "Title Icons" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("title-icons.php" instead of "titleicons.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
No dangerous file extensions were detected176 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13630125
CSS15032
Markdown15011
JavaScript1008

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
100 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/email.png0.95KB1.13KB0.00%
icons/connected.png0.97KB1.10KB0.00%
icons/search.png0.85KB0.88KB0.00%
icons/happy-face.png1.06KB1.24KB0.00%
icons/leaves.png0.99KB0.98KB▼ 1.09%