84% nametiles

Code Review | Nametiles

WordPress plugin Nametiles scored 84% from 54 tests.

About plugin

  • Plugin page: nametiles
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.2.2
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: May 28, 2015
  • Number of updates: 8
  • Update frequency: every 2.5 days
  • Top authors: larz3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 730 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼10.95ms] Passed 4 tests

Server-side resources used by Nametiles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.35 ▼11.75
Dashboard /wp-admin3.36 ▲0.0646.72 ▼3.95
Posts /wp-admin/edit.php3.48 ▲0.1250.61 ▲3.42
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.26 ▼28.58
Media Library /wp-admin/upload.php3.28 ▲0.0636.67 ▲0.50
Nametiles /wp-admin/options-general.php?page=nametiles3.2533.75

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
nametiles_api_key
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
passcard_endpoint

Browser metrics Passed 4 tests

A check of browser resources used by Nametiles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7613.16 ▼1.402.51 ▲0.3344.60 ▲3.27
Dashboard /wp-admin2,207 ▲255.79 ▼0.0794.99 ▼9.2239.87 ▼2.68
Posts /wp-admin/edit.php2,090 ▼22.00 ▼0.0634.21 ▼5.5435.58 ▲1.29
Add New Post /wp-admin/post-new.php1,538 ▲523.34 ▲0.29666.25 ▲21.0054.73 ▼1.28
Media Library /wp-admin/upload.php1,395 ▲134.17 ▼0.0393.29 ▼6.1343.66 ▲1.04
Nametiles /wp-admin/options-general.php?page=nametiles8792.0525.0333.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/nametiles/nametiles.php:138
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/nametiles/options.php:5

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: nametiles, passcard, avatar, hovercard, openname...

nametiles/nametiles.php Passed 13 tests

Analyzing the main PHP file in "Nametiles" version 1.2.0
51 characters long description:
Enables Nametiles & Passcard support for your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin274 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP29861274

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin