88% flopictime

Code Review | FloPicTime - Pic-Time & WordPress integration

WordPress plugin FloPicTime - Pic-Time & WordPress integration scored 88% from 54 tests.

About plugin

  • Plugin page: flopictime
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Nov 11, 2019
  • Latest release: Mar 29, 2022
  • Number of updates: 20
  • Update frequency: every 43.5 days
  • Top authors: flothemesplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 4,914 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼305.40ms] 75% from 4 tests

An overview of server-side resources used by FloPicTime - Pic-Time & WordPress integration
Please fix the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 2,553.14ms on /wp-admin/post-new.php?post_type=flo_pictime_gallery)
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.2970.33 ▲3.23
Dashboard /wp-admin3.65 ▲0.2444.79 ▲4.90
Posts /wp-admin/edit.php3.87 ▲0.2349.23 ▲0.68
Add New Post /wp-admin/post-new.php7.23 ▲0.26133.44 ▼1,230.39
Media Library /wp-admin/upload.php3.60 ▲0.3144.22 ▲10.43
All FloPicTime Galleries /wp-admin/edit.php?post_type=flo_pictime_gallery3.672,675.48
Add New FloPicTime Gallery /wp-admin/post-new.php?post_type=flo_pictime_gallery3.822,553.14

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for FloPicTime - Pic-Time & WordPress integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,875 ▲11715.83 ▲0.288.73 ▼2.903.44 ▼0.39
Dashboard /wp-admin2,964 ▲856.41 ▲0.05187.70 ▼34.73198.33 ▼20.54
Posts /wp-admin/edit.php2,740 ▲683.43 ▼0.0087.10 ▼15.87177.43 ▼2.69
Add New Post /wp-admin/post-new.php1,769 ▲12914.26 ▼6.61503.72 ▼232.00194.08 ▼12.80
Media Library /wp-admin/upload.php1,744 ▲475.71 ▼0.01200.20 ▲2.13250.64 ▼18.29
All FloPicTime Galleries /wp-admin/edit.php?post_type=flo_pictime_gallery1,4384.57122.66140.18
Add New FloPicTime Gallery /wp-admin/post-new.php?post_type=flo_pictime_gallery2,0366.25205.98198.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/flopictime/public/partials/pictimewp-public-display.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/flopictime/admin/class-pictime-meta-box.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/flopictime/admin/partials/pictimewp-admin-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: image proofing, pic-time

flopictime/pictimewp.php 85% from 13 tests

"FloPicTime - Pic-Time & WordPress integration" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flopictime.php" instead of "pictimewp.php")

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
No dangerous file extensions were detected8,098 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript75981806,839
PHP154367121,093
CSS332124
SVG10041
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods56
▷ Static methods1017.86%
▷ Public methods5191.07%
▷ Protected methods00.00%
▷ Private methods58.93%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.11MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/project_cover.png0.93KB0.88KB▼ 5.57%
admin/img/pt.png108.80KB115.45KB0.00%